Skip to content

Commit da9191c

Browse files
committed
Type name property of constructor
1 parent d3fc8bd commit da9191c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ export type InternalConstructors<N extends string, D extends Definition> = {
66
tag: R
77
value: Parameters<D[R]>[0]
88
}
9+
name: R
910
}
1011
}
1112
export type Constructors<N extends string, D extends Definition> = {
1213
[R in keyof D]: {
1314
(value: Parameters<D[R]>[0]): InternalInstance<N, D, keyof D>
15+
name: R
1416
}
1517
}
1618
export type MatchOptions<D extends Definition, T> = {

0 commit comments

Comments
 (0)