File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
/** Copied from deprecated https://www.npmjs.com/package/is-subset-of **/
2
3
import { Type } from './TypeDescriptor.js' ;
3
4
Original file line number Diff line number Diff line change
1
+ /* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-function-type */
2
+ /** Copied from deprecated https://www.npmjs.com/package/typedescriptor **/
1
3
const valueTypes = new Set ( [
2
4
'boolean' ,
3
5
'number' ,
@@ -96,7 +98,6 @@ class TypeDescriptor {
96
98
return valueTypes . has ( TypeDescriptor . of ( value ) ) ;
97
99
}
98
100
99
- // eslint-disable-next-line @typescript-eslint/ban-types
100
101
public static isReferenceType (
101
102
value : any ,
102
103
) : value is any [ ] | Function | object | symbol {
@@ -111,7 +112,6 @@ class TypeDescriptor {
111
112
return TypeDescriptor . of ( value ) === 'boolean' ;
112
113
}
113
114
114
- // eslint-disable-next-line @typescript-eslint/ban-types
115
115
public static isFunction ( value : any ) : value is Function {
116
116
return TypeDescriptor . of ( value ) === 'function' ;
117
117
}
@@ -124,7 +124,6 @@ class TypeDescriptor {
124
124
return TypeDescriptor . of ( value ) === 'number' ;
125
125
}
126
126
127
- // eslint-disable-next-line @typescript-eslint/ban-types
128
127
public static isObject ( value : any ) : value is object {
129
128
return TypeDescriptor . of ( value ) === 'object' ;
130
129
}
You can’t perform that action at this time.
0 commit comments