Change tagged template literal argument type to accept unknown instead of just string (#316)
This commit is contained in:
parent
587a5fbcbb
commit
7f6e5630b0
4 changed files with 4 additions and 11 deletions
4
index.d.ts
vendored
4
index.d.ts
vendored
|
|
@ -68,9 +68,9 @@ export interface ColorSupport {
|
|||
}
|
||||
|
||||
export interface Chalk {
|
||||
(...text: string[]): string;
|
||||
(...text: unknown[]): string;
|
||||
|
||||
(text: TemplateStringsArray, ...placeholders: string[]): string;
|
||||
(text: TemplateStringsArray, ...placeholders: unknown[]): string;
|
||||
|
||||
/**
|
||||
* Return a new Chalk instance.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue