Skip to content

Commit

Permalink
Typings for BigInt arrays in cmp.ts + update lib to es2020.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Feb 7, 2024
1 parent 5f4d395 commit 0ac6ac7
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion addons/Dexie.Observable/test/typings/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"strictNullChecks": true,
"outDir": "../../tools/tmp/test-typings",
"moduleResolution": "node",
"lib": ["dom", "es2018"]
"lib": ["dom", "es2020"]
},
"files": [
"test-typings.ts"
Expand Down
4 changes: 2 additions & 2 deletions addons/dexie-cloud/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"module": "es2015",
"target": "es2018",
"target": "es2020",
"declaration": true,
"importHelpers": true,
"strictNullChecks": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"moduleResolution": "node",
"lib": ["ES2018", "DOM"],
"lib": ["ES2020", "DOM"],
"forceConsistentCasingInFileNames": true,
"sourceMap": true,
"rootDir": ".",
Expand Down
2 changes: 1 addition & 1 deletion addons/dexie-cloud/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noImplicitAny": false,
"noImplicitReturns": true,
"moduleResolution": "node",
"lib": ["ES2018", "DOM"],
"lib": ["ES2020", "DOM"],
"forceConsistentCasingInFileNames": true,
"sourceMap": true,
"rootDir": "..",
Expand Down
4 changes: 3 additions & 1 deletion src/functions/cmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ type BinaryType =
| Uint32Array
| Int32Array
| Float32Array
| Float64Array;
| Float64Array
| BigInt64Array
| BigUint64Array;

function getUint8Array(a: BinaryType): Uint8Array {
if (a instanceof Uint8Array) return a;
Expand Down
2 changes: 1 addition & 1 deletion src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noImplicitAny": false,
"noImplicitReturns": false,
"moduleResolution": "node",
"lib": ["es2018", "dom"],
"lib": ["es2020", "dom"],
"forceConsistentCasingInFileNames": true,
"outDir": "../tools/tmp/src/",
"sourceMap": true
Expand Down
2 changes: 1 addition & 1 deletion test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noImplicitAny": false,
"noImplicitReturns": false,
"moduleResolution": "node",
"lib": ["es2018", "dom"],
"lib": ["es2020", "dom"],
"forceConsistentCasingInFileNames": true,
"outDir": "../tools/tmp/",
"sourceMap": true,
Expand Down
2 changes: 1 addition & 1 deletion test/typings-test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"noImplicitThis": true,
"outDir": "../../tools/tmp/test-typings",
"moduleResolution": "node",
"lib": ["dom", "es2015"]
"lib": ["dom", "es2020"]
},
"files": [
"test-typings.ts"
Expand Down

0 comments on commit 0ac6ac7

Please sign in to comment.