nihilqui
Version:
Typescript .d.ts generator from GIR for gjs and node-gtk
16 lines (13 loc) • 491 B
text/typescript
import { GirInfoAttrs, GirInfoElements, GirType, PartOfClass, TsAlias } from './index.js'
export interface GirAliasElement extends PartOfClass, GirInfoElements {
/** Type's name substitution, representing a typedef in C */
$: GirInfoAttrs & {
/** the new name or typedef'd name */
name: string
/** the corresponding C type's name */
'c:type'?: string
}
/** Other elements an alias can contain */
type?: GirType[]
_tsData?: TsAlias
}