es-to-primitive: remove ts3.1 (#47611)

Typescript 3.1 is no longer supported on DT.
This commit is contained in:
Nathan Shively-Sanders 2020-09-16 16:23:30 -07:00 committed by GitHub
parent 57e71410df
commit 7b75ac5c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 0 additions and 77 deletions

View File

@ -1,11 +0,0 @@
{
"private": true,
"types": "index",
"typesVersions": {
"<=3.1": {
"*": [
"ts3.1/*"
]
}
}
}

View File

@ -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);

View File

@ -1,5 +0,0 @@
declare function ToPrimitive(
input: unknown,
hint?: typeof String | typeof Number,
): string | number | boolean | symbol | null | undefined;
export = ToPrimitive;

View File

@ -1,5 +0,0 @@
declare function ToPrimitive(
input: unknown,
hint?: typeof String | typeof Number,
): string | number | boolean | symbol | null | undefined;
export = ToPrimitive;

View File

@ -1,3 +0,0 @@
import ToPrimitive = require('./es2015');
/** @deprecated */
export = ToPrimitive;

View File

@ -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;

View File

@ -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"
]
}

View File

@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }