Skip to content

Commit 4fed6ba

Browse files
committed
some cleanup
1 parent 9c06ef3 commit 4fed6ba

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/slang-utils/create-nonterminal-variant-creator.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,10 @@
22
import { extractVariant } from './extract-variant.js';
33

44
import type { ParserOptions } from 'prettier';
5-
import type {
6-
AstNode,
7-
StrictAstNode,
8-
StrictPolymorphicNode
9-
} from '../slang-nodes/types.d.ts';
5+
import type { AstNode, StrictPolymorphicNode } from '../slang-nodes/types.d.ts';
106
import type { CollectedMetadata, SlangAstNode } from '../types.d.ts';
117

12-
type Constructor<T = StrictAstNode> = new (...args: any) => T;
8+
type Constructor<T> = new (...args: any) => T;
139
type ConstructorsFromInstances<U> = U extends any ? Constructor<U> : never;
1410
type GenericFunction<U> = U extends any
1511
? { prototype: unknown; name: string }

0 commit comments

Comments
 (0)