Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript programmatically union

class types {Foo: typeof Foo; Bar: typeof Bar;};
type myUnion = typeof types[keyof typeof types];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #programmatically #union
ADD COMMENT
Topic
Name
5+2 =