@vot.js/shared
Advanced tools
Comparing version 2.0.14 to 2.0.15
@@ -11,3 +11,3 @@ export default { | ||
loggerLevel: 1, | ||
version: "2.0.14", | ||
version: "2.0.15", | ||
}; |
@@ -23,2 +23,8 @@ import { Type, Static, TSchema } from '@sinclair/typebox' | ||
Type.Literal("false") | ||
]) | ||
]) | ||
export type GraphQL<T extends TSchema> = Static<ReturnType<typeof GraphQL<T>>> | ||
export const GraphQL = <T extends TSchema>(T: T) => Type.Object({ | ||
data: T, | ||
extensions: Type.Optional(Type.Unknown()) | ||
}) |
@@ -0,1 +1,2 @@ | ||
import { GraphQL } from "../utils.js"; | ||
export declare enum TypeName { | ||
@@ -19,6 +20,3 @@ Channel = "Channel", | ||
}; | ||
export type GraphQLResponse = { | ||
data: Record<OperationName, VideoInfo>; | ||
extensions: unknown; | ||
}; | ||
export type GetVideoResponse = GraphQL<Record<OperationName, VideoInfo>>; | ||
//# sourceMappingURL=bannedvideo.d.ts.map |
@@ -5,2 +5,6 @@ export type ISODate = string; | ||
export type StringBoolean = "true" | "false"; | ||
export type GraphQL<T> = { | ||
data: T; | ||
extensions?: unknown; | ||
}; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "@vot.js/shared", | ||
"description": "shared for all @vot.js package", | ||
"version": "2.0.14", | ||
"version": "2.0.15", | ||
"author": "Toil", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
174214
3796