You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to compile typescript after enabling strict null checks fails.
To Reproduce
Steps to reproduce the behavior:
Set strictNullChecks compiler option to true in tsconfig.json
Attempt to use any module from @tauri-apps/api
The following error should appear on compilation:
ERROR in node_modules/@tauri-apps/api/tauri.ts:30:54
TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
Type 'undefined' is not assignable to type 'number'.
28 | const length = new Int8Array(1)
29 | window.crypto.getRandomValues(length)
> 30 | const array = new Uint8Array(Math.max(16, Math.abs(length[0])))
| ^^^^^^^^^
31 | window.crypto.getRandomValues(array)
32 | return array.join('')
33 | }
Describe the bug
Attempting to compile typescript after enabling strict null checks fails.
To Reproduce
Steps to reproduce the behavior:
strictNullChecks
compiler option totrue
intsconfig.json
@tauri-apps/api
Expected behavior
The application should compile without errors.
Platform and Versions (required):
The text was updated successfully, but these errors were encountered: