libchai 0.2.0 → 0.2.1

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.
package/chai.d.ts CHANGED
@@ -15,41 +15,3 @@ export class Web {
15
15
  encode_evaluate(前端目标函数配置: any): any;
16
16
  optimize(): void;
17
17
  }
18
-
19
- export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
20
-
21
- export interface InitOutput {
22
- readonly memory: WebAssembly.Memory;
23
- readonly __wbg_web_free: (a: number, b: number) => void;
24
- readonly validate: (a: number, b: number) => void;
25
- readonly web_new: (a: number) => number;
26
- readonly web_sync: (a: number, b: number, c: number) => void;
27
- readonly web_encode_evaluate: (a: number, b: number, c: number) => void;
28
- readonly web_optimize: (a: number, b: number) => void;
29
- readonly __wbindgen_export_0: (a: number, b: number) => number;
30
- readonly __wbindgen_export_1: (a: number, b: number, c: number, d: number) => number;
31
- readonly __wbindgen_export_2: (a: number) => void;
32
- readonly __wbindgen_export_3: (a: number, b: number, c: number) => void;
33
- readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
34
- }
35
-
36
- export type SyncInitInput = BufferSource | WebAssembly.Module;
37
- /**
38
- * Instantiates the given `module`, which can either be bytes or
39
- * a precompiled `WebAssembly.Module`.
40
- *
41
- * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
42
- *
43
- * @returns {InitOutput}
44
- */
45
- export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
46
-
47
- /**
48
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
49
- * for everything else, calls `WebAssembly.instantiate` directly.
50
- *
51
- * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
52
- *
53
- * @returns {Promise<InitOutput>}
54
- */
55
- export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;