Skip to content

API Reference / @gtkx/codegen / ApiReferenceOptions

Type Alias: ApiReferenceOptions

ApiReferenceOptions = object

Defined in: codegen/dist/docs/api-reference.d.ts:4

What to index and the element config the rendered pages reflect.

Properties

girPath

girPath: string[]

Defined in: codegen/dist/docs/api-reference.d.ts:8

Directories to search for .gir files.


libraries

libraries: string[]

Defined in: codegen/dist/docs/api-reference.d.ts:6

GIR library identifiers to load, such as "Gtk-4.0"; their dependencies are pulled in too.


omittedProps?

optional omittedProps?: OmittedProps

Defined in: codegen/dist/docs/api-reference.d.ts:12

GObject properties the project omits from generated props; without it pages show props that do not exist.


props?

optional props?: ElementProps

Defined in: codegen/dist/docs/api-reference.d.ts:10

Base props interfaces per element, as read by readBuiltinElements; without it pages miss them.

Released under the MPL-2.0 License.