compilerOptions 
Type: object | undefined | Default: undefined
TypeScript compiler options for the generated code.
Usage 
typescript
// openapi.config.ts
import { GeneratorConfig } from 'ng-openapi';
const config: GeneratorConfig = {
  compilerOptions: {
    declaration: true,
    target: ScriptTarget.ES2022,
    module: ModuleKind.Preserve,
    strict: true
  },
  ... // other configurations
};
export default config;1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
Schema 
typescript
type CompilerOptions = {
  declaration?: boolean;
  target?: ScriptTarget;
  module?: ModuleKind;
  strict?: boolean;
};1
2
3
4
5
6
2
3
4
5
6
Notes 
- When not specified, the generator uses default Angular TypeScript compiler settings