Skip to content

Commit

Permalink
Type name property of constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
JAForbes committed Feb 28, 2024
1 parent d3fc8bd commit da9191c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.ts
Expand Up @@ -6,11 +6,13 @@ export type InternalConstructors<N extends string, D extends Definition> = {
tag: R
value: Parameters<D[R]>[0]
}
name: R
}
}
export type Constructors<N extends string, D extends Definition> = {
[R in keyof D]: {
(value: Parameters<D[R]>[0]): InternalInstance<N, D, keyof D>
name: R
}
}
export type MatchOptions<D extends Definition, T> = {
Expand Down

0 comments on commit da9191c

Please sign in to comment.