Skip to content

Commit e0afc4a

Browse files
committed
fix factory api signatures
1 parent 11d556a commit e0afc4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/compiler/factory/nodeFactory.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,7 +2653,7 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode
26532653
// @api
26542654
function createImportTypeNode(
26552655
argument: TypeNode,
2656-
attributes?: ImportTypeAssertionContainer | ImportTypeAttributes,
2656+
attributes?: ImportTypeAttributes,
26572657
qualifier?: EntityName,
26582658
typeArguments?: readonly TypeNode[],
26592659
isTypeOf = false,
@@ -2672,7 +2672,7 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode
26722672
function updateImportTypeNode(
26732673
node: ImportTypeNode,
26742674
argument: TypeNode,
2675-
attributes: ImportTypeAssertionContainer | ImportTypeAttributes | undefined,
2675+
attributes: ImportTypeAttributes | undefined,
26762676
qualifier: EntityName | undefined,
26772677
typeArguments: readonly TypeNode[] | undefined,
26782678
isTypeOf: boolean = node.isTypeOf,
@@ -4706,7 +4706,7 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode
47064706
modifiers: readonly ModifierLike[] | undefined,
47074707
importClause: ImportClause | undefined,
47084708
moduleSpecifier: Expression,
4709-
attributes: ImportAttributes | AssertClause | undefined,
4709+
attributes: ImportAttributes | undefined,
47104710
): ImportDeclaration {
47114711
const node = createBaseNode<ImportDeclaration>(SyntaxKind.ImportDeclaration);
47124712
node.modifiers = asNodeArray(modifiers);
@@ -4727,7 +4727,7 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode
47274727
modifiers: readonly ModifierLike[] | undefined,
47284728
importClause: ImportClause | undefined,
47294729
moduleSpecifier: Expression,
4730-
attributes: ImportAttributes | AssertClause | undefined,
4730+
attributes: ImportAttributes | undefined,
47314731
) {
47324732
return node.modifiers !== modifiers
47334733
|| node.importClause !== importClause
@@ -4972,7 +4972,7 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode
49724972
isTypeOnly: boolean,
49734973
exportClause: NamedExportBindings | undefined,
49744974
moduleSpecifier?: Expression,
4975-
attributes?: AssertClause | ImportAttributes,
4975+
attributes?: ImportAttributes,
49764976
) {
49774977
const node = createBaseDeclaration<ExportDeclaration>(SyntaxKind.ExportDeclaration);
49784978
node.modifiers = asNodeArray(modifiers);
@@ -4996,7 +4996,7 @@ export function createNodeFactory(flags: NodeFactoryFlags, baseFactory: BaseNode
49964996
isTypeOnly: boolean,
49974997
exportClause: NamedExportBindings | undefined,
49984998
moduleSpecifier: Expression | undefined,
4999-
attributes: AssertClause | ImportAttributes | undefined,
4999+
attributes: ImportAttributes | undefined,
50005000
) {
50015001
return node.modifiers !== modifiers
50025002
|| node.isTypeOnly !== isTypeOnly

0 commit comments

Comments
 (0)