mirror of
https://github.com/artegoser/piped-api.git
synced 2024-11-21 18:56:22 +03:00
doc: add Item type
This commit is contained in:
parent
c71702157f
commit
6f0aaa4081
4 changed files with 8 additions and 6 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "piped-api",
|
"name": "piped-api",
|
||||||
"version": "1.1.2",
|
"version": "1.1.4",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "piped-api",
|
"name": "piped-api",
|
||||||
"version": "1.1.2",
|
"version": "1.1.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.4.0"
|
"axios": "^1.4.0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "piped-api",
|
"name": "piped-api",
|
||||||
"version": "1.1.2",
|
"version": "1.1.4",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"docs": "typedoc src/index.ts",
|
"docs": "typedoc src/index.ts",
|
||||||
"prepublishOnly": "npm run build && npm run docs"
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"api",
|
"api",
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
export { PipedAPI } from "./piped-api";
|
export { PipedAPI } from "./piped-api";
|
||||||
export * as Types from "./responses.interface";
|
export * from "./responses.interface";
|
||||||
|
|
|
@ -147,7 +147,9 @@ export interface Segments {
|
||||||
|
|
||||||
export interface Search {
|
export interface Search {
|
||||||
nextpage: string;
|
nextpage: string;
|
||||||
items: (Video | Channel)[];
|
items: Item[];
|
||||||
corrected: boolean;
|
corrected: boolean;
|
||||||
suggestion: string | null;
|
suggestion: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type Item = Video | Channel;
|
||||||
|
|
Loading…
Add table
Reference in a new issue