配置、清单与策略
Support · 推荐实现与策略 · 返回本层目录
| 符号 | 类别 | 用途 |
|---|---|---|
defineRegistrationCatalog | function | Compile an ordered installation plan. Predicates observe the effects of preceding installations at request time; a predicate that throws rejects the install instead of being treated as false. Callbacks are bound to their declaring definition so implementations may rely on this. |
defineSchema | function | Re-snapshot an existing adapter without changing its behavior. Used to detach a caller-owned adapter from later mutation before it is exposed or reused. |
fromJsonSchema | function | Build an adapter from a caller-owned typed JSON Schema compiler. The schema is cloned and frozen before it reaches the compiler, so later mutation of the input cannot change validation. Compilation and validation must both be synchronous. |
fromParserSchema | function | Wrap a library schema that already parses values (for example Zod or Valibot style). parse is delegated unchanged, so the library keeps ownership of coercion and error reporting; only the JSON Schema projection is produced here. |
JsonSchemaOptions | interface | Options for building an adapter from a JSON Schema compiler. |
JsonSchemaValidator | interface | App-owned JSON Schema compilers provide synchronous validation. |
RegistrationDefinition | interface | One install step. |