Skip to content

Commit

Permalink
chore: Fix typo (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr authored Aug 23, 2021
1 parent c78baef commit 84cda8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions node-swc/src/Visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
ExportDefaultExpression,
ExportDefaultSpecifier,
ExportNamedDeclaration,
ExportNamespaceSpecifer,
ExportNamespaceSpecifier,
ExportSpecifier,

This comment has been minimized.

Copy link
@jdalton

jdalton Aug 24, 2021

Thank you @ifiokjr! I noticed this too the other day

Expression,
ExpressionStatement,
Expand Down Expand Up @@ -287,7 +287,7 @@ export default class Visitor {
switch (n.type) {
case "ExportDefaultSpecifier":
return this.visitExportDefaultSpecifier(n);
case "ExportNamespaceSpecifer":
case "ExportNamespaceSpecifier":
return this.visitExportNamespaceSpecifier(n);
case "ExportSpecifier":
return this.visitNamedExportSpecifier(n);
Expand All @@ -301,7 +301,7 @@ export default class Visitor {
return n;
}

visitExportNamespaceSpecifier(n: ExportNamespaceSpecifer): ExportSpecifier {
visitExportNamespaceSpecifier(n: ExportNamespaceSpecifier): ExportSpecifier {
n.name = this.visitBindingIdentifier(n.name);
return n;
}
Expand Down
6 changes: 3 additions & 3 deletions node-swc/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1523,15 +1523,15 @@ export interface NamedImportSpecifier extends Node, HasSpan {
}

export type ExportSpecifier =
| ExportNamespaceSpecifer
| ExportNamespaceSpecifier
| ExportDefaultSpecifier
| NamedExportSpecifier;

/**
* `export * as foo from 'src';`
*/
export interface ExportNamespaceSpecifer extends Node, HasSpan {
type: "ExportNamespaceSpecifer";
export interface ExportNamespaceSpecifier extends Node, HasSpan {
type: "ExportNamespaceSpecifier";

name: Identifier;
}
Expand Down

0 comments on commit 84cda8a

Please sign in to comment.