Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt committed Apr 21, 2021
1 parent e00e110 commit 0f4e94f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/nodes/export-declaration.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import type { RawNode } from "./node";
import * as ts from "typescript";
import type { Expression, ExportDeclaration as RawExport } from "typescript";
import * as printers from "../printers";
import Node from "./node";
import { checker } from "../checker";

type ExportDeclarationType = RawExport & {
moduleSpecifier?: Expression & {
Expand All @@ -27,11 +25,11 @@ export default class ExportDeclaration extends Node<ExportDeclarationType> {
if (this.raw.moduleSpecifier)
specifier = `from '${this.raw.moduleSpecifier.text}';`;

const generateOutput = (prefix) => {
const generateOutput = prefix => {
return `${prefix} {
${elements.map(node => printers.node.printType(node))}
}${specifier}\n`;
}
};

return isTypeImport
? generateOutput(`export type`)
Expand Down

0 comments on commit 0f4e94f

Please sign in to comment.