diff --git a/src/templates/templates/defaultAliasNamedDestructiveDefaultTemplate.ts b/src/templates/templates/defaultAliasNamedDestructiveDefaultTemplate.ts index e056c70..7699257 100644 --- a/src/templates/templates/defaultAliasNamedDestructiveDefaultTemplate.ts +++ b/src/templates/templates/defaultAliasNamedDestructiveDefaultTemplate.ts @@ -1,13 +1,13 @@ export const defaultAliasNamedDestructiveDefaultTemplate = ` <%- if (it.statement.default != null && it.statement.named.length > 0) { -%> - export { default as <%= it.statement.default.identifier.alias %>, <%= it.statement.named.map((named) => (named.isPureType ? 'type ' + named.identifier.name : named.identifier.name)).join(', ') %> } from + export { <%= it.statement.default.isPureType ? 'type ' : '' %>default as <%= it.statement.default.identifier.alias %>, <%= it.statement.named.map((named) => (named.isPureType ? 'type ' + named.identifier.name : named.identifier.name)).join(', ') %> } from <%-= it.options.quote %><%= it.statement.importPath %><%= it.statement.extname.render %><%= it.options.quote -%> <%- if (it.options.useSemicolon) { -%><%-= ";" -%><%- } -%> <%- } else if (it.statement.default != null) { -%> - export { default as <%= it.statement.default.identifier.alias %> } from + export { <%= it.statement.default.isPureType ? 'type ' : '' %>default as <%= it.statement.default.identifier.alias %> } from <%-= it.options.quote %><%= it.statement.importPath %><%= it.statement.extname.render %><%= it.options.quote %> <%- if (it.options.useSemicolon) { -%><%-= ";" -%><%- } -%> diff --git a/src/templates/templates/defaultAliasNamedStarDefaultTemplate.ts b/src/templates/templates/defaultAliasNamedStarDefaultTemplate.ts index c567c7a..798d1f7 100644 --- a/src/templates/templates/defaultAliasNamedStarDefaultTemplate.ts +++ b/src/templates/templates/defaultAliasNamedStarDefaultTemplate.ts @@ -1,7 +1,7 @@ export const defaultAliasNamedStarDefaultTemplate = ` <%- if (it.statement.default != null && it.statement.named.length > 0) { -%> - export { default as <%= it.statement.default.identifier.alias %> } from + export { <%= it.statement.default.isPureType ? 'type ' : '' %>default as <%= it.statement.default.identifier.alias %> } from <%-= it.options.quote %><%= it.statement.importPath %><%= it.statement.extname.render %><%= it.options.quote %> <%- if (it.options.useSemicolon) { -%><%-= ";" -%><%- } -%> export * from <%= it.options.quote %><%= it.statement.importPath %><%= it.statement.extname.render %><%= it.options.quote %> @@ -9,7 +9,7 @@ export const defaultAliasNamedStarDefaultTemplate = ` <%- } else if (it.statement.default != null) { -%> - export { default as <%= it.statement.default.identifier.alias %> } from + export { <%= it.statement.default.isPureType ? 'type ' : '' %>default as <%= it.statement.default.identifier.alias %> } from <%-= it.options.quote %><%= it.statement.importPath %><%= it.statement.extname.render %><%= it.options.quote %> <%- if (it.options.useSemicolon) { -%><%-= ";" -%><%- } -%>