We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4276d3 commit d80c643Copy full SHA for d80c643
src/newHelperTypeName.ts
@@ -13,6 +13,8 @@ export const newHelperTypeName = (state: ParserState, type: ts.Type) => {
13
let shortHash = fullHash.digest("base64").replace(/\W/g, '').substring(0, 10);
14
if (state.helperTypeNames.has(shortHash) && state.helperTypeNames.get(shortHash) !== type) {
15
shortHash = "HelperType" + state.helperTypeNames.size.toString();
16
+ } else {
17
+ state.helperTypeNames.set(shortHash, type);
18
}
19
return `Ts2Py_${shortHash}`;
20
};
0 commit comments