Skip to content

Commit

Permalink
Merge pull request #16 from joakimbeng/patch-1
Browse files Browse the repository at this point in the history
fix: use function overload to make the tagged template have the correct type
  • Loading branch information
webdiscus authored Dec 14, 2023
2 parents 2070b7b + def6caa commit d325bbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ interface Ansis {
*
* @param {string | TemplateStringsArray} string
*/
(string: string | TemplateStringsArray): string;
(string: string): string;
(string: TemplateStringsArray, ...parameters: string[]): string;

/**
* Set [256-color ANSI code](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) for foreground color.
Expand Down

0 comments on commit d325bbe

Please sign in to comment.