Remove package ansi-regex (#38916)

This commit is contained in:
Florian Keller 2019-10-07 22:17:40 +02:00 committed by Armando Aguirre
parent 766cf29ab9
commit 7f384ef239
5 changed files with 6 additions and 56 deletions

View File

@ -72,6 +72,12 @@
"sourceRepoURL": "https://github.com/sindresorhus/ansi-escapes",
"asOfVersion": "4.0.0"
},
{
"libraryName": "ansi-regex",
"typingsPackageName": "ansi-regex",
"sourceRepoURL": "https://github.com/chalk/ansi-regex",
"asOfVersion": "5.0.0"
},
{
"libraryName": "antd",
"typingsPackageName": "antd",

View File

@ -1,16 +0,0 @@
import ansiRegex = require("ansi-regex");
ansiRegex(); // $ExpectType RegExp
// From the ansi-regex README.md
ansiRegex().test('\u001B[4mcake\u001B[0m'); // $ExpectType boolean
// => true
ansiRegex().test('cake'); // $ExpectType boolean
// => false
ansiRegex({onlyFirst: true}).test('cake'); // $ExpectType boolean
// => false
'\u001B[4mcake\u001B[0m'.match(ansiRegex()); // $ExpectType RegExpMatchArray | null
// => ['\u001B[4m', '\u001B[0m']

View File

@ -1,16 +0,0 @@
// Type definitions for ansi-regex 4.0
// Project: https://github.com/chalk/ansi-regex#readme
// Definitions by: Manish Vachharajani <https://github.com/mvachhar>
// Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace ansiRegex {
interface Options {
/** Match only the first ANSI escape. */
onlyFirst?: boolean;
}
}
declare function ansiRegex(options?: ansiRegex.Options): RegExp;
export = ansiRegex;

View File

@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"ansi-regex-tests.ts"
]
}

View File

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