mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
es-to-primitive: remove ts3.1 (#47611)
Typescript 3.1 is no longer supported on DT.
This commit is contained in:
parent
57e71410df
commit
7b75ac5c4a
@ -1,11 +0,0 @@
|
||||
{
|
||||
"private": true,
|
||||
"types": "index",
|
||||
"typesVersions": {
|
||||
"<=3.1": {
|
||||
"*": [
|
||||
"ts3.1/*"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
// tslint:disable-next-line:no-relative-import-in-test Rule does not apply to nested typesVersions tests
|
||||
import ToPrimitive = require('./');
|
||||
// tslint:disable-next-line:no-relative-import-in-test Rule does not apply to nested typesVersions tests
|
||||
import ToPrimitiveES5 = require('./es5');
|
||||
// tslint:disable-next-line:no-relative-import-in-test Rule does not apply to nested typesVersions tests
|
||||
import ToPrimitiveES6 = require('./es2015');
|
||||
// tslint:disable-next-line:no-relative-import-in-test Rule does not apply to nested typesVersions tests
|
||||
import ToPrimitiveES2015 = require('./es2015');
|
||||
|
||||
const any: unknown = undefined;
|
||||
|
||||
ToPrimitive.ES5(any);
|
||||
ToPrimitive.ES6(any);
|
||||
ToPrimitive.ES2015(any);
|
||||
|
||||
ToPrimitiveES5(any);
|
||||
ToPrimitiveES6(any);
|
||||
ToPrimitiveES2015(any);
|
||||
5
types/es-to-primitive/ts3.1/es2015.d.ts
vendored
5
types/es-to-primitive/ts3.1/es2015.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
declare function ToPrimitive(
|
||||
input: unknown,
|
||||
hint?: typeof String | typeof Number,
|
||||
): string | number | boolean | symbol | null | undefined;
|
||||
export = ToPrimitive;
|
||||
5
types/es-to-primitive/ts3.1/es5.d.ts
vendored
5
types/es-to-primitive/ts3.1/es5.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
declare function ToPrimitive(
|
||||
input: unknown,
|
||||
hint?: typeof String | typeof Number,
|
||||
): string | number | boolean | symbol | null | undefined;
|
||||
export = ToPrimitive;
|
||||
3
types/es-to-primitive/ts3.1/es6.d.ts
vendored
3
types/es-to-primitive/ts3.1/es6.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import ToPrimitive = require('./es2015');
|
||||
/** @deprecated */
|
||||
export = ToPrimitive;
|
||||
11
types/es-to-primitive/ts3.1/index.d.ts
vendored
11
types/es-to-primitive/ts3.1/index.d.ts
vendored
@ -1,11 +0,0 @@
|
||||
import ES5 = require('./es5');
|
||||
import ES6 = require('./es6');
|
||||
import ES2015 = require('./es2015');
|
||||
|
||||
declare const ToPrimitive: typeof ES2015 & {
|
||||
readonly ES5: typeof ES5;
|
||||
/** @deprecated */
|
||||
readonly ES6: typeof ES6;
|
||||
readonly ES2015: typeof ES2015;
|
||||
};
|
||||
export = ToPrimitive;
|
||||
@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es5"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../../",
|
||||
"typeRoots": [
|
||||
"../../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"es-to-primitive-tests.ts"
|
||||
]
|
||||
}
|
||||
@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user