Skip to content

Commit

Permalink
fix: Fixing typing for the exported web client dist
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-demox committed Sep 11, 2024
1 parent 801c0e4 commit fd5410e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Added support for account export in the CLI (#479).
* Added the Web Client Crate
* Added testing suite for the Web Client Crate
* Fixed typing for the Web Client Crate
* [BREAKING] Refactored `TransactionRequest` to represent a generalized transaction (#438).

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion crates/web-client/js/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export {
NewTransactionResult,
SerializedAccountStub,
NewSwapTransactionResult,
} from "./crates/miden_client";
} from "./crates/miden_client_web";
15 changes: 9 additions & 6 deletions crates/web-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"module": "ESNext", /* Specify what module code is generated. */
"moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
"typeRoots": ["./node_modules/@types", "./dist/crates"], /* Specify multiple folders that act like './node_modules/@types'. */
"types": ["mocha"], /* Specify type package names to be included without being referenced in a source file. */
"allowJs": true,
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
"noEmit": true,
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
"strict": true, /* Enable all strict type-checking options. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
"noEmit": true,
},
"include": ["src/**/*.ts", "dist/crates/**/*.ts", "test/**/*.ts"],
"include": [
"src/**/*.ts",
"dist/**/*.d.ts",
"test/**/*.ts",
],
"files": ["./test/global.test.d.ts"],
"exclude": ["node_modules"],
}
"exclude": ["node_modules", "js"],
}

0 comments on commit fd5410e

Please sign in to comment.