Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class A {
- foo: string;
- }
- function bar<T>(c: typeof T): T {
- return new c();
- }
- const a: A = bar(A);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement