typescript-json-schema
typescript-json-schema copied to clipboard
Can it compile node built-in modules such as `http`?
ts file content
// a.ts
import * as https from 'https';
import * as http from 'http';
export interface UserConfig {
name: string;
http: http.ServerOptions;
// https: https.ServerOptions;
}
my script
yarn typescript-json-schema a.ts UserConfig
online example https://stackblitz.com/edit/babel-playback-ww3gsf?file=index.js
if
yarn typescript-json-schema a.ts UserConfigdoes not work, you can tryyarn typescript-json-schema typescript-json-schema a.ts UserConfig
The terminal is always executing