We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c06ef3 commit 4fed6baCopy full SHA for 4fed6ba
1 file changed
src/slang-utils/create-nonterminal-variant-creator.ts
@@ -2,14 +2,10 @@
2
import { extractVariant } from './extract-variant.js';
3
4
import type { ParserOptions } from 'prettier';
5
-import type {
6
- AstNode,
7
- StrictAstNode,
8
- StrictPolymorphicNode
9
-} from '../slang-nodes/types.d.ts';
+import type { AstNode, StrictPolymorphicNode } from '../slang-nodes/types.d.ts';
10
import type { CollectedMetadata, SlangAstNode } from '../types.d.ts';
11
12
-type Constructor<T = StrictAstNode> = new (...args: any) => T;
+type Constructor<T> = new (...args: any) => T;
13
type ConstructorsFromInstances<U> = U extends any ? Constructor<U> : never;
14
type GenericFunction<U> = U extends any
15
? { prototype: unknown; name: string }
0 commit comments