@milkio/astra 1.3.18 → 1.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +1 -2
  2. package/index.js +5 -3
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -8,7 +8,6 @@ export type AstraOptionsInit = {
8
8
  };
9
9
  bootstrap: () => Promise<Record<string, any>>;
10
10
  };
11
- type GeneratorGeneric<T> = T extends AsyncGenerator<infer I> ? I : never;
12
11
  type Mixin<T, U> = U & Omit<T, keyof U>;
13
12
  type ExecuteOptions = {
14
13
  headers?: Record<string, string>;
@@ -49,7 +48,7 @@ export declare function createAstra<AstraOptions extends AstraOptionsInit, Gener
49
48
  generateParams: true;
50
49
  }>) => Promise<Generated["routeSchema"][Path]["types"]["🥛"] extends boolean ? // action
51
50
  [Partial<Generated["rejectCode"]>, null, ExecuteResultsOption] | [null, Generated["routeSchema"][Path]["types"]["result"], ExecuteResultsOption] : // stream
52
- [Partial<Generated["rejectCode"]>, null, ExecuteResultsOption] | [null, AsyncGenerator<[Partial<Generated["rejectCode"]>, null] | [null, GeneratorGeneric<Generated["routeSchema"][Path]["types"]["result"]>], ExecuteResultsOption>]>;
51
+ [Partial<Generated["rejectCode"]>, null, ExecuteResultsOption] | [null, AsyncGenerator<[Partial<Generated["rejectCode"]>, null] | [null, Generated["routeSchema"][Path]["types"]["result"]], ExecuteResultsOption>]>;
53
52
  emit: <Key extends keyof Generated["events"]>(key: Key, options?: {
54
53
  params?: Omit<Generated["events"][Key], "context">;
55
54
  headers?: Record<string, string>;