*Remove schema and keep in relay

This commit is contained in:
Derrick Hammer 2022-08-28 22:15:58 -04:00
parent 1a77bb0469
commit d94c3c8e5a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 1 additions and 25 deletions

View File

@ -2,8 +2,5 @@
"name": "@lumeweb/relay-types",
"version": "0.1.0",
"main": "dist",
"type": "module",
"devDependencies": {
"ajv": "^8.11.0"
}
"type": "module"
}

View File

@ -1,4 +1,3 @@
import type { JSONSchemaType } from "ajv";
export interface RPCRequest {
bypassCache?: boolean;
module: string;
@ -20,26 +19,6 @@ export interface RPCMethod {
) => Promise<RPCResponse | null>;
}
// @ts-ignore
export const RPC_REQUEST_SCHEMA: JSONSchemaType<RPCRequest> = {
type: "object",
properties: {
module: {
type: "string",
},
method: {
type: "string",
},
data: {
type: ["number", "string", "boolean", "object", "array"],
},
bypassCache: {
type: "boolean",
nullable: true,
},
},
};
export interface StreamFileResponse {
data?: Uint8Array;
done: boolean;