UNPKG

@taqueria/protocol

Version:

A TypeScript package which contains types that are to be shared between @taqueria/node-sdk and @taqueria/taqueria.

9 lines 566 B
import { NonEmptyString, PluginJsonResponse, RequestArgs } from '@taqueria/protocol'; import { Template } from '@taqueria/protocol/types'; export * from '@taqueria/protocol/out/types/Template'; type TemplateHandler = NonEmptyString.t | ((args: RequestArgs.t) => PluginJsonResponse.t | Promise<PluginJsonResponse.t>) | Promise<void>; type InputTemplate = Omit<Template, 'handler'> & { handler: TemplateHandler; }; export declare function create(args: InputTemplate): import("@taqueria/protocol/out/types/Template").Template; //# sourceMappingURL=Template.d.ts.map