Open RohanTalip opened 3 years ago
Have you tried --no-type-check
? I was initially unable to get the generator CLI to run because it was trying to parse complex types from a library I happened to have installed, but had nothing to do with the interface I actually wanted to make a schema for. By running the CLI with npx ts-json-schema-generator -p MyService.ts -t "MyInterface" -f tsconfig.json --no-type-check
I was able to get past that error. (I'm assuming that whatever object you're trying serialize / parse shouldn't have a property that is an Express Application, because that wouldn't make any sense.)
Same issue here
ts-json-schema-generator -p './dist/stack/interfaces.d.ts' -t 'StackOptions' -f ./tsconfig.json --no-type-check
gives:
Error: Unknown node "SignedMessage" (ts.SyntaxKind = 157) at /Users/0x77/Projects/dstack/node_modules/@libp2p/interface-pubsub/dist/src/index.d.ts(41,30)
--no-type-check
has no effect
any updates on this issue?
Hi,
I'm trying to move from
typescript-json-schema
tots-json-schema-generator
, but I'm seeing this error:I have
"@types/express": "4.16.1"
specified in my package.json file.npm list @types/express-serve-static-core
shows that it is resolving with version 4.17.2.This is probably the version of the file in the
DefinitelyTyped
repository: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/4331db7e1c7da5e87bf2faa41e2c81859e125ab8/types/express-serve-static-core/index.d.ts#L477Any ideas?