nihilqui
Version:
Typescript .d.ts generator from GIR for gjs and node-gtk
50 lines (48 loc) • 1.77 kB
text/typescript
import { BuildType, Environment, ModuleType } from './index.js'
/**
* Types for config file
*/
export interface UserConfig {
/** javascript environment */
environments: Environment[]
/** root / working directory of your project */
root: string
/** directory to output to */
outdir: string | null
/** Definitions generation type */
buildType?: BuildType
/** Module type, can be CommonJS or ESM */
moduleType?: ModuleType
/** GIR directories */
girDirectories: string[]
/** Switch on/off the verbose mode */
verbose: boolean
/** Do not ask for package versions if multiple versions are found */
ignoreVersionConflicts: boolean
/** print the output to console and create no files */
print: boolean
/** GIR modules to load, e.g. 'Gio-2.0'. Accepts multiple modules */
modules: string[]
/** modules that should be ignored */
ignore?: string[]
/** Do not export all symbols for each module as a namespace */
noNamespace: boolean
/** Do not generate documentation comments */
noComments: boolean
/** Do not generate debugging inline comments */
noDebugComments: boolean
/** Fix Inheritance and implementation type conflicts */
fixConflicts: boolean
/** Disables the generation of types that are in conflict with the DOM types */
noDOMLib: boolean
/** Generate a tsconfig alias */
generateAlias: boolean
/** Generate promisified functions for async/finish calls */
promisify: boolean
/** Scope of the generated NPM packages */
npmScope: string
/** Generates an NPM compatible packages for each GIR module */
package: boolean
/** Adds Yarn workspace support to the NPM packages */
packageYarn: boolean
}