typescript2java
typescript2java copied to clipboard
Errors compiling
I got some errors when compiling it with tsc: :-(
~/dev/typescript2java$ tsc
prejavatypes/PreJavaTypeUnion.ts:255:35 - error TS2345: Argument of type 'Set<unknown>' is not assignable to parameter of type 'Set<PreJavaType>'.
Type '{}' is missing the following properties from type 'PreJavaType': getSourceTypes, getHierachyDepth, getSimpleName, getPackageName, and 12 more.
255 this.addBaseTypesOf(type, res)
~~~
prejavatypes/PreJavaTypeUnion.ts:256:9 - error TS2322: Type 'Set<unknown>' is not assignable to type 'Set<PreJavaType>'.
256 return res
~~~~~~~~~~
ts-tools.ts:169:84 - error TS2345: Argument of type 'Set<unknown>' is not assignable to parameter of type 'Set<string>'.
Type 'unknown' is not assignable to type 'string'.
169 fetchUsedFreeTypeParametersInternal(callSignature.getReturnType(), usedInSignature, typeChecker)
~~~~~~~~~~~~~~~
ts-tools.ts:172:68 - error TS2345: Argument of type 'Set<unknown>' is not assignable to parameter of type 'Set<string>'.
172 fetchUsedFreeTypeParametersInternal(paramType, usedInSignature, typeChecker)
~~~~~~~~~~~~~~~
ts-tools.ts:180:48 - error TS2345: Argument of type 'unknown' is not assignable to parameter of type 'string'.
180 usedTypeParameters.add(t)
Same problem here, seems to be incompatible with recent type script compiler fixes.