UNPKG

@ts-for-gir/lib

Version:

Typescript .d.ts generator from GIR for gjs

19 lines 695 B
import { NativeType, FunctionType, GenericType, GenerifiedType } from "../gir.js"; import { JSField } from "../gir/property.js"; export default { namespace: "Gtk", version: "4.0", modifier(namespace) { { const Widget = namespace.assertClass("Widget"); Widget.fields.push(new JSField({ name: "Symbol.iterator", parent: Widget, computed: true, doc: "Gtk.Widget is an iterable of its children.", type: new FunctionType({}, new GenerifiedType(new NativeType("IterableIterator"), new GenericType("Widget"))) })); } } }; //# sourceMappingURL=gtk4.js.map