API Reference / @gtkx/codegen / readBuiltinElements
Variable: readBuiltinElements
constreadBuiltinElements: (reactSubexports,giStoreDir) =>Promise<BuiltinElements>
Defined in: codegen/dist/react/element-config.d.ts:23
Reads the framework's built-in element config by importing the config entrypoints of the installed @gtkx/react, skipping the per-namespace ones whose namespace the gi store does not carry. Those entrypoints are reconciler-free, so importing them resolves @gtkx/gi but never virtual:gtkx-config, which means this must run only after the gi store has been written and linked.
Parameters
reactSubexports
string[]
Subexport names of the installed @gtkx/react, as resolveStore reports them.
giStoreDir
string
The gi store directory, whose subdirectories name the generated namespaces.
Returns
Promise<BuiltinElements>