UNPKG

nihilqui

Version:

Typescript .d.ts generator from GIR for gjs and node-gtk

29 lines (24 loc) 798 B
import { GirBoolean, GirInfoElements, GirInfoAttrs, GirCallableParams, GirCallableReturn, PartOfModule, TsCallback, } from './index.js' export interface GirCallbackElement extends PartOfModule, GirInfoElements { /** A callback closure, that is a function called when a signal is emitted (as an answer to that signal) */ $: GirInfoAttrs & { /** name of the callback */ name: string /** the C type returned by the callback closure (i.e. function) */ 'c:type'?: string /** Binary attribute, true if the callback can throw an error */ throws?: GirBoolean } /* Other elements a property can contain */ parameters?: [GirCallableParams] 'return-value'?: GirCallableReturn[] _tsData?: TsCallback }