typescript-json-schema icon indicating copy to clipboard operation
typescript-json-schema copied to clipboard

Can it compile node built-in modules such as `http`?

Open ltaoo opened this issue 4 years ago • 1 comments

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 UserConfig does not work, you can try yarn typescript-json-schema typescript-json-schema a.ts UserConfig

ltaoo avatar Oct 29 '21 07:10 ltaoo

The terminal is always executing

ltaoo avatar Oct 29 '21 07:10 ltaoo