diff --git a/package-lock.json b/package-lock.json index d3f3f6c..89f12bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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" diff --git a/package.json b/package.json index 10b92b3..fb85229 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index 1a9a150..e445e2b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ export { PipedAPI } from "./piped-api"; -export * as Types from "./responses.interface"; +export * from "./responses.interface"; diff --git a/src/responses.interface.ts b/src/responses.interface.ts index 3feb52c..cd41756 100644 --- a/src/responses.interface.ts +++ b/src/responses.interface.ts @@ -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;