diff --git a/notNeededPackages.json b/notNeededPackages.json index a611a591f5..e9c00610a4 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -78,6 +78,12 @@ "sourceRepoURL": "https://github.com/nonplus/angular-ui-router-uib-modal", "asOfVersion": "0.0.11" }, + { + "libraryName": "ansi-colors", + "typingsPackageName": "ansi-colors", + "sourceRepoURL": "https://github.com/doowb/ansi-colors", + "asOfVersion": "3.2.1" + }, { "libraryName": "ansi-escapes", "typingsPackageName": "ansi-escapes", diff --git a/types/ansi-colors/ansi-colors-tests.ts b/types/ansi-colors/ansi-colors-tests.ts deleted file mode 100644 index c267e879eb..0000000000 --- a/types/ansi-colors/ansi-colors-tests.ts +++ /dev/null @@ -1,35 +0,0 @@ -import colors = require('ansi-colors'); - -colors.red('This is a red string!'); // $ExpectType string -colors.green('This is a red string!'); // $ExpectType string -colors.cyan('This is a cyan string!'); // $ExpectType string -colors.yellow('This is a yellow string!'); // $ExpectType string - -colors.bold.red('this is a bold red message'); // $ExpectType string -colors.bold.yellow.italic('this is a bold yellow italicized message'); // $ExpectType string -colors.green.bold.underline('this is a bold green underlined message'); // $ExpectType string - -colors.yellow(`foo ${colors.red.bold('red')} bar ${colors.cyan('cyan')} baz`); // $ExpectType string -colors.bold(`foo ${colors.red.dim('bar')} baz`); // $ExpectType string - -colors.enabled = false; -colors.visible = false; - -colors.hasAnsi(colors.blue('foo')); // $ExpectType boolean -colors.hasColor(colors.blue('foo')); // $ExpectType boolean - -colors.unstyle(colors.blue.bold('foo bar baz')); // $ExpectType string -colors.stripColor(colors.blue.bold('foo bar baz')); // $ExpectType string - -colors.none('foo'); // $ExpectType string -colors.clear('foo'); // $ExpectType string -colors.noop('foo'); // $ExpectType string - -colors.define('reset', [0, 0], 'modifier'); - -colors.symbols.ballotCross; // $ExpectType string | undefined -colors.symbols.windows.ballotCross; // $ExpectError -colors.symbols.other.ballotCross; // $ExpectType string -colors.symbols.cross; // $ExpectType string -colors.symbols.windows.cross; // $ExpectType string -colors.symbols.other.cross; // $ExpectType string diff --git a/types/ansi-colors/index.d.ts b/types/ansi-colors/index.d.ts deleted file mode 100644 index 0cf9cd0d9f..0000000000 --- a/types/ansi-colors/index.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -// Type definitions for ansi-colors 3.2 -// Project: https://github.com/doowb/ansi-colors -// Definitions by: Rogier Schouten -// BendingBender -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -export = colors; - -declare const colors: colors.Colors; - -declare namespace colors { - type ColorFn = ((text: string) => string) & Colors; - - interface Colors { - enabled: boolean; - visible: boolean; - - reset: ColorFn; - bold: ColorFn; - dim: ColorFn; - italic: ColorFn; - underline: ColorFn; - inverse: ColorFn; - hidden: ColorFn; - strikethrough: ColorFn; - - black: ColorFn; - red: ColorFn; - green: ColorFn; - yellow: ColorFn; - blue: ColorFn; - magenta: ColorFn; - cyan: ColorFn; - white: ColorFn; - gray: ColorFn; - grey: ColorFn; - - bgBlack: ColorFn; - bgRed: ColorFn; - bgGreen: ColorFn; - bgYellow: ColorFn; - bgBlue: ColorFn; - bgMagenta: ColorFn; - bgCyan: ColorFn; - bgWhite: ColorFn; - - blackBright: ColorFn; - redBright: ColorFn; - greenBright: ColorFn; - yellowBright: ColorFn; - blueBright: ColorFn; - magentaBright: ColorFn; - cyanBright: ColorFn; - whiteBright: ColorFn; - - bgBlackBright: ColorFn; - bgRedBright: ColorFn; - bgGreenBright: ColorFn; - bgYellowBright: ColorFn; - bgBlueBright: ColorFn; - bgMagentaBright: ColorFn; - bgCyanBright: ColorFn; - bgWhiteBright: ColorFn; - - hasColor(text: string): boolean; - hasAnsi(text: string): boolean; - unstyle(text: string): string; - stripColor(text: string): string; - none(text: string): string; - clear(text: string): string; - noop(text: string): string; - - symbols: Symbols & { - windows: WindowsSymbols; - other: OtherPlatformsSymbols; - }; - - define( - name: string, - codes: [number, number], - type: 'modifier' | 'color' | 'bg' | 'bright' | 'bgBright' - ): void; - } - - interface WindowsSymbols { - bullet: string; - check: string; - cross: string; - ellipsis: string; - heart: string; - info: string; - line: string; - middot: string; - minus: string; - plus: string; - question: string; - questionSmall: string; - pointer: string; - pointerSmall: string; - warning: string; - } - - interface ExtendedSymbols { - ballotCross: string; - questionFull: string; - } - - type Symbols = WindowsSymbols & Partial; - type OtherPlatformsSymbols = WindowsSymbols & ExtendedSymbols; -} diff --git a/types/ansi-colors/tsconfig.json b/types/ansi-colors/tsconfig.json deleted file mode 100644 index 8a0f980cbc..0000000000 --- a/types/ansi-colors/tsconfig.json +++ /dev/null @@ -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-colors-tests.ts" - ] -} diff --git a/types/ansi-colors/tslint.json b/types/ansi-colors/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ansi-colors/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/ansi-colors/v1/ansi-colors-tests.ts b/types/ansi-colors/v1/ansi-colors-tests.ts deleted file mode 100644 index 9a9afc43f4..0000000000 --- a/types/ansi-colors/v1/ansi-colors-tests.ts +++ /dev/null @@ -1,30 +0,0 @@ -import * as colors from 'ansi-colors'; - -let s: string; - -s = colors.bgblack("hello"); -s = colors.bgblue("hello"); -s = colors.bgcyan("hello"); -s = colors.bggreen("hello"); -s = colors.bgmagenta("hello"); -s = colors.bgred("hello"); -s = colors.bgwhite("hello"); -s = colors.bgyellow("hello"); -s = colors.black("hello"); -s = colors.blue("hello"); -s = colors.bold("hello"); -s = colors.cyan("hello"); -s = colors.dim("hello"); -s = colors.gray("hello"); -s = colors.green("hello"); -s = colors.grey("hello"); -s = colors.hidden("hello"); -s = colors.inverse("hello"); -s = colors.italic("hello"); -s = colors.magenta("hello"); -s = colors.red("hello"); -s = colors.reset("hello"); -s = colors.strikethrough("hello"); -s = colors.underline("hello"); -s = colors.white("hello"); -s = colors.yellow("hello"); diff --git a/types/ansi-colors/v1/index.d.ts b/types/ansi-colors/v1/index.d.ts deleted file mode 100644 index 092c4c1f2b..0000000000 --- a/types/ansi-colors/v1/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Type definitions for ansi-colors 1.0 -// Project: https://github.com/doowb/ansi-colors -// Definitions by: Rogier Schouten -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export function bgblack(s: string): string; -export function bgblue(s: string): string; -export function bgcyan(s: string): string; -export function bggreen(s: string): string; -export function bgmagenta(s: string): string; -export function bgred(s: string): string; -export function bgwhite(s: string): string; -export function bgyellow(s: string): string; -export function black(s: string): string; -export function blue(s: string): string; -export function bold(s: string): string; -export function cyan(s: string): string; -export function dim(s: string): string; -export function gray(s: string): string; -export function green(s: string): string; -export function grey(s: string): string; -export function hidden(s: string): string; -export function inverse(s: string): string; -export function italic(s: string): string; -export function magenta(s: string): string; -export function red(s: string): string; -export function reset(s: string): string; -export function strikethrough(s: string): string; -export function underline(s: string): string; -export function white(s: string): string; -export function yellow(s: string): string; diff --git a/types/ansi-colors/v1/tsconfig.json b/types/ansi-colors/v1/tsconfig.json deleted file mode 100644 index 8321162c90..0000000000 --- a/types/ansi-colors/v1/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "paths": { - "ansi-colors": [ - "ansi-colors/v1" - ] - }, - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "ansi-colors-tests.ts" - ] -} diff --git a/types/ansi-colors/v1/tslint.json b/types/ansi-colors/v1/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/ansi-colors/v1/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }