@teamkeel/wasm 0.29.0 → 0.32.0

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 (2) hide show
  1. package/dist/index.d.ts +30 -0
  2. package/package.json +4 -3
@@ -0,0 +1,30 @@
1
+ declare module '@teamkeel/wasm/build' {
2
+ export {};
3
+ }
4
+
5
+ declare module '@teamkeel/wasm/index' {
6
+ interface ValidateOptions {
7
+ color: boolean;
8
+ }
9
+
10
+ interface KeelAPI {
11
+ format: (schemaString: string) => string;
12
+ validate: (schemaString: string, options?: ValidateOptions) => string;
13
+ }
14
+ const instantiate: () => Promise<KeelAPI>;
15
+ export default instantiate;
16
+
17
+ }
18
+
19
+ declare module '@teamkeel/wasm/lib/wasm_exec' {
20
+
21
+ }
22
+
23
+ declare module '@teamkeel/wasm/lib/wasm_exec_node' {
24
+ export {};
25
+ }
26
+
27
+ declare module '@teamkeel/wasm' {
28
+ import main = require('@teamkeel/wasm/index');
29
+ export = main;
30
+ }
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@teamkeel/wasm",
3
- "version": "0.29.0",
3
+ "version": "0.32.0",
4
4
  "description": "Provides wasm binaries for the Keel CLI",
5
- "main": "index.js",
5
+ "main": "dist/index.js",
6
6
  "scripts": {
7
- "build": "node build.mjs",
7
+ "build": "node build.mjs && npm run copy:types",
8
+ "copy:types": "cp index.d.ts dist/",
8
9
  "start": "node dist/index.js",
9
10
  "prepublishOnly": "npm run build"
10
11
  },