Skip to content

Commit 86d8293

Browse files
authored
Merge pull request #337 from pjshy/fix/gen
fix: support typescript isolatedModules
2 parents ba60c33 + 0b1515c commit 86d8293

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cli/generate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ export function generateCode(paths: Paths, variableName: VariableName): string {
4848
4949
const ${VARIABLE_NAME.pathFactory} = ${codeStringify(pathFactory)};
5050
51+
export type { ${VARIABLE_NAME.ParamsInterface} as ${variableName.ParamsInterface} };
52+
5153
export {
52-
${VARIABLE_NAME.ParamsInterface} as ${variableName.ParamsInterface},
5354
${VARIABLE_NAME.staticPath} as ${variableName.staticPath},
5455
${VARIABLE_NAME.pathFactory} as ${variableName.pathFactory},
5556
}

0 commit comments

Comments
 (0)