doc: add Item type

This commit is contained in:
Artemy 2023-08-09 15:54:51 +03:00
parent c71702157f
commit 6f0aaa4081
4 changed files with 8 additions and 6 deletions

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "piped-api",
"version": "1.1.2",
"version": "1.1.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "piped-api",
"version": "1.1.2",
"version": "1.1.4",
"license": "MIT",
"dependencies": {
"axios": "^1.4.0"

View file

@ -1,6 +1,6 @@
{
"name": "piped-api",
"version": "1.1.2",
"version": "1.1.4",
"description": "",
"main": "dist/index.js",
"type": "module",
@ -14,7 +14,7 @@
"test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc",
"docs": "typedoc src/index.ts",
"prepublishOnly": "npm run build && npm run docs"
"prepublishOnly": "npm run build"
},
"keywords": [
"api",

View file

@ -1,2 +1,2 @@
export { PipedAPI } from "./piped-api";
export * as Types from "./responses.interface";
export * from "./responses.interface";

View file

@ -147,7 +147,9 @@ export interface Segments {
export interface Search {
nextpage: string;
items: (Video | Channel)[];
items: Item[];
corrected: boolean;
suggestion: string | null;
}
export type Item = Video | Channel;