Readonlykind: "literal"Discriminant: the schema argument is an inline object literal.
Readonlynode: TS.ObjectLiteralExpressionThe object literal AST node itself.
Readonlykind: "identifier"Discriminant: the schema argument is a bare identifier referencing a local const.
Readonlyname: stringThe referenced identifier's name, not yet resolved to a declaration.
Readonlykind: "unresolvable"Discriminant: the schema argument isn't statically resolvable (not a literal or identifier).
How a
createEnv/documentEnvcall's first argument resolves, before any cross-file linking is attempted (that'slink.ts's job, not this file's -- this module only ever looks at one file's own AST).