diff --git a/package-lock.json b/package-lock.json index 72fe280..312dff0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ts-gyb", - "version": "0.10.0", + "version": "0.10.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ts-gyb", - "version": "0.10.0", + "version": "0.10.1", "license": "MIT", "dependencies": { "chalk": "^4.1.1", diff --git a/package.json b/package.json index 8622343..63d7db9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-gyb", - "version": "0.10.0", + "version": "0.10.1", "description": "Generate Native API based on TS interface", "repository": { "type": "git", diff --git a/src/generator/named-types.ts b/src/generator/named-types.ts index 8c383cf..df9e82b 100644 --- a/src/generator/named-types.ts +++ b/src/generator/named-types.ts @@ -245,5 +245,13 @@ function recursiveVisitMembersType( return; } - console.log(`Unhandled value type ${JSON.stringify(valueType)}`); + if (valueType.kind === ValueTypeKind.basicType) { + // string, boolean, etc. + return; + } + if (valueType.kind === ValueTypeKind.predefinedType) { + // CodeGen_Int, etc. + return; + } + throw Error(`Unhandled value type ${JSON.stringify(valueType)}`); }