Skip to content

Commit

Permalink
Merge pull request #248 from coadan/236-extended-typescript-support
Browse files Browse the repository at this point in the history
TypeScript <3.7 support by self-reference type rewrite
  • Loading branch information
dcousens authored May 5, 2021
2 parents 8d6f4f1 + f41d5eb commit 2e87b50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

export type Value = string | number | boolean | undefined | null;
export type Mapping = { [key: string]: any };
export type Argument = Value | Mapping | Argument[];
interface ArgumentArray extends Array<Value | Mapping | ArgumentArray>{}
export type Argument = Value | Mapping | ArgumentArray;

export default function classNames(...args: Argument[]): string;

0 comments on commit 2e87b50

Please sign in to comment.