onCreateSchema() function

Registers a hook to run when the schema is created, ignoring a handler already registered.

Signature:

export declare function onCreateSchema(handler: CreateSchemaHook): void;

Parameters

Parameter

Type

Description

handler

CreateSchemaHook

the hook to run with the built schema

Returns:

void

Remarks

DependencyFor() uses this internally; call it directly to defer wiring of your own that also needs the finished schema. De-duplication is by function identity, so a named function passed twice is stored once while two identical inline arrows are two hooks.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.