Change tagged template literal argument type to accept unknown instead of just string (#316)

This commit is contained in:
Jonathan Van Buren 2018-12-28 19:13:56 +08:00 committed by Sindre Sorhus
parent 587a5fbcbb
commit 7f6e5630b0
4 changed files with 4 additions and 11 deletions

View file

@ -23,7 +23,7 @@ export type ColorSupport = {|
export interface Chalk {
(...text: string[]): string,
(text: TemplateStringsArray, ...placeholders: string[]): string,
(text: TemplateStringsArray, ...placeholders: mixed[]): string,
constructor(options?: Options): Chalk,
enabled: boolean,
level: Level,