Initial import of zappier-edge from zapier monorepo
This commit is contained in:
commit
525edd7469
128 changed files with 20479 additions and 0 deletions
11
src/nats-shim.d.ts
vendored
Normal file
11
src/nats-shim.d.ts
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
declare module 'nats' {
|
||||
export function connect(opts: unknown): Promise<{
|
||||
request(s: string, d: Uint8Array, o: { timeout: number }): Promise<{ data: Uint8Array }>;
|
||||
publish(s: string, d: Uint8Array): void;
|
||||
close(): Promise<void>;
|
||||
}>;
|
||||
export function StringCodec(): {
|
||||
encode(s: string): Uint8Array;
|
||||
decode(u: Uint8Array): string;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue