data-cap
    Preparing search index...

    Type Alias SchemaRef

    SchemaRef:
        | { kind: "literal"; node: ts.ObjectLiteralExpression }
        | { kind: "identifier"; name: string }
        | { kind: "unresolvable"; reason: string }

    How a buildData/createData/documentData call's fields reference resolves, before any cross-file linking is attempted (that's link.ts's job -- this module only ever looks at one file's own AST).

    Type Declaration

    • { kind: "literal"; node: ts.ObjectLiteralExpression }

      fields is an inline object literal in this same call.

      • Readonlykind: "literal"

        Always "literal" for this variant.

      • Readonlynode: ts.ObjectLiteralExpression

        The object literal AST node itself.

    • { kind: "identifier"; name: string }

      fields is a bare identifier -- resolved against ParseResult.localConsts/cross-file imports by link.ts.

      • Readonlykind: "identifier"

        Always "identifier" for this variant.

      • Readonlyname: string

        The identifier's text.

    • { kind: "unresolvable"; reason: string }

      fields could not be statically resolved to either of the above.

      • Readonlykind: "unresolvable"

        Always "unresolvable" for this variant.

      • Readonlyreason: string

        Human-readable explanation of why resolution failed.