From 1a77bb0469740dd608f260d4f47c45da554f312d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 28 Aug 2022 22:11:57 -0400 Subject: [PATCH] *Update dist --- dist/index.d.ts | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 45e0083..62a6b44 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,36 +1,41 @@ import type { JSONSchemaType } from "ajv"; export interface RPCRequest { - bypassCache?: boolean; - module: string; - method: string; - data: any; + bypassCache?: boolean; + module: string; + method: string; + data: any; } export interface RPCResponse { - updated?: number; - data?: any; - error?: string; + updated?: number; + data?: any; + error?: string; } export interface RPCMethod { - cacheable: boolean; - handler: (request: RPCRequest, sendStream: (stream: AsyncIterable) => void) => Promise; + cacheable: boolean; + handler: ( + request: RPCRequest, + sendStream: (stream: AsyncIterable) => void + ) => Promise; } export declare const RPC_REQUEST_SCHEMA: JSONSchemaType; export interface StreamFileResponse { - data?: Uint8Array; - done: boolean; + data?: Uint8Array; + done: boolean; } export interface PluginAPI { - config: any; - registerMethod: (methodName: string, method: RPCMethod) => void; - loadPlugin: (moduleName: string) => Promise; - getMethods: () => string[]; + config: any; + registerMethod: (methodName: string, method: RPCMethod) => void; + loadPlugin: (moduleName: string) => Promise; + getMethods: () => string[]; } export declare type PluginFunction = (api: PluginAPI) => Promise; export interface Plugin { - name: string; - plugin: PluginFunction; - exports?: any; - default?: Plugin; + name: string; + plugin: PluginFunction; + exports?: any; + default?: Plugin; } -export declare type RPCStreamHandler = (stream: AsyncIterable) => Promise; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file +export declare type RPCStreamHandler = ( + stream: AsyncIterable +) => Promise; +//# sourceMappingURL=index.d.ts.map