File tree Expand file tree Collapse file tree 6 files changed +41
-50
lines changed Expand file tree Collapse file tree 6 files changed +41
-50
lines changed Original file line number Diff line number Diff line change 64
64
"@typescript-eslint/no-unsafe-return" : " off" ,
65
65
"@typescript-eslint/no-unsafe-argument" : " off" ,
66
66
"@typescript-eslint/no-unsafe-call" : " off" ,
67
+ "@typescript-eslint/consistent-type-imports" : [
68
+ " error" ,
69
+ {
70
+ "prefer" : " type-imports" ,
71
+ "disallowTypeAnnotations" : false ,
72
+ "fixStyle" : " inline-type-imports"
73
+ }
74
+ ],
67
75
"no-bigint-usage/no-bigint-literals" : " error" ,
68
76
"no-restricted-globals" : [
69
77
" error" ,
Original file line number Diff line number Diff line change 26
26
},
27
27
"devDependencies" : {
28
28
"@istanbuljs/nyc-config-typescript" : " ^1.0.2" ,
29
- "@microsoft/api-extractor" : " ^7.34.7 " ,
29
+ "@microsoft/api-extractor" : " ^7.35.1 " ,
30
30
"@rollup/plugin-node-resolve" : " ^15.0.2" ,
31
31
"@rollup/plugin-typescript" : " ^11.1.0" ,
32
32
"@types/chai" : " ^4.3.5" ,
56
56
"standard-version" : " ^9.5.0" ,
57
57
"ts-node" : " ^10.9.1" ,
58
58
"tsd" : " ^0.28.1" ,
59
- "typescript" : " ^4.9 .4" ,
59
+ "typescript" : " ^5.0 .4" ,
60
60
"typescript-cached-transpile" : " 0.0.6" ,
61
61
"uuid" : " ^9.0.0" ,
62
62
"v8-profiler-next" : " ^1.9.0"
Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ const tsConfig = {
16
16
importHelpers : false ,
17
17
noEmitHelpers : false ,
18
18
noEmitOnError : true ,
19
- // make use of import type where applicable
20
- importsNotUsedAsValues : 'error' ,
21
19
// Generate separate source maps files with sourceContent included
22
20
sourceMap : true ,
23
21
inlineSourceMap : false ,
Original file line number Diff line number Diff line change @@ -61,18 +61,18 @@ export class Timestamp extends LongWithoutOverridesClass {
61
61
if ( typeof low . i !== 'number' && ( typeof low . i !== 'object' || low . i . _bsontype !== 'Int32' ) ) {
62
62
throw new BSONError ( 'Timestamp constructed from { t, i } must provide i as a number' ) ;
63
63
}
64
- if ( low . t < 0 ) {
64
+ if ( low . t . valueOf ( ) < 0 ) {
65
65
throw new BSONError ( 'Timestamp constructed from { t, i } must provide a positive t' ) ;
66
66
}
67
- if ( low . i < 0 ) {
67
+ if ( low . i . valueOf ( ) < 0 ) {
68
68
throw new BSONError ( 'Timestamp constructed from { t, i } must provide a positive i' ) ;
69
69
}
70
- if ( low . t > 0xffff_ffff ) {
70
+ if ( low . t . valueOf ( ) > 0xffff_ffff ) {
71
71
throw new BSONError (
72
72
'Timestamp constructed from { t, i } must provide t equal or less than uint32 max'
73
73
) ;
74
74
}
75
- if ( low . i > 0xffff_ffff ) {
75
+ if ( low . i . valueOf ( ) > 0xffff_ffff ) {
76
76
throw new BSONError (
77
77
'Timestamp constructed from { t, i } must provide i equal or less than uint32 max'
78
78
) ;
Original file line number Diff line number Diff line change 16
16
"noEmitHelpers" : false ,
17
17
"noEmitOnError" : true ,
18
18
"emitDeclarationOnly" : true ,
19
- // make use of import type where applicable
20
- "importsNotUsedAsValues" : " error" ,
21
19
// Generate separate source maps files with sourceContent included
22
20
"sourceMap" : true ,
23
21
"inlineSourceMap" : false ,
You can’t perform that action at this time.
0 commit comments