Skip to content

API Reference / @gtkx/codegen / readGeneratedLibraries

Function: readGeneratedLibraries() ​

readGeneratedLibraries(giStoreDir): GeneratedLibraries | null

Defined in: packages/codegen/src/store/gi/generated-libraries.ts:32

Reads the GIR library inventory written into a generated GI store.

Parameters ​

giStoreDir ​

string

Generated GI store directory.

Returns ​

GeneratedLibraries | null

The recorded libraries, or null if the inventory is absent, unreadable, unparseable, or has an unrecognized structure.