@maverickcer/env-cap
    Preparing search index...

    Type Alias SchemaRef

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

    How a createEnv/documentEnv call's first argument resolves, before any cross-file linking is attempted (that's link.ts's job, not this file's -- this module only ever looks at one file's own AST).

    Type Declaration

    • { kind: "literal"; node: TS.ObjectLiteralExpression }
      • Readonlykind: "literal"

        Discriminant: the schema argument is an inline object literal.

      • Readonlynode: TS.ObjectLiteralExpression

        The object literal AST node itself.

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

        Discriminant: the schema argument is a bare identifier referencing a local const.

      • Readonlyname: string

        The referenced identifier's name, not yet resolved to a declaration.

    • { kind: "unresolvable" }
      • Readonlykind: "unresolvable"

        Discriminant: the schema argument isn't statically resolvable (not a literal or identifier).