Generated documentation outline
Selected javascript guides
The fixed, symbol-backed guide plan used by this isolated hosted publication Flyte canary.
Register and call typed hooks
Build a source-grounded TypeScript guide that declares a hook contract, creates a typed Hookable instance with createHooks, registers handlers with hook, and awaits callHook. HARD OUTPUT CONTRACT: the entire submitted Markdown must contain exactly two fenced code blocks total, both labeled typescript. These two blocks are the complete fence budget and override general style guidance to add variations, troubleshooting, or more examples. Fence 1 must demonstrate typed registration and sequential dispatch. Fence 2 must capture and invoke the unregister function returned by hook. Each designated fence must contain its own named ESM imports and type declarations. Outside those two fences, use prose and inline code only; do not add installation, import-only, output, error-handling, alternative, troubleshooting, or explanatory fences in any language or with tilde markers. Explain in prose that a handler error rejects callHook rather than being swallowed; do not demonstrate that point in another block. Before calling submit_content, count fenced blocks in the complete Markdown and revise it unless the total is exactly two. Do not use default imports, CommonJS require, invented APIs, or an unawaited callHook promise.
- Document type:
how_to - Source symbols:
hookable.createHooks,hookable.Hookable.hook,hookable.Hookable.callHook
Run one-shot and parallel hooks
Build a source-grounded TypeScript guide to one-shot and parallel hook execution with hookOnce, removeHook, callHook, and callHookParallel. HARD OUTPUT CONTRACT: the entire submitted Markdown must contain exactly two fenced code blocks total, both labeled typescript. These two blocks are the complete fence budget and override general style guidance to add variations, edge cases, or more examples. Fence 1 must await the same hook twice and demonstrate that a hookOnce handler runs only on the first call. Fence 2 must register a named handler, await parallel dispatch, and remove that same handler. Each designated fence must contain its own named ESM imports and type declarations. Outside those two fences, use prose and inline code only; do not add installation, import-only, output, unregistration-alternative, internal-implementation, variation, or explanatory fences in any language or with tilde markers. Before calling submit_content, count fenced blocks in the complete Markdown and revise it unless the total is exactly two. Do not use default imports, access undocumented internals, invent APIs, or leave hook promises unawaited.
- Document type:
guide - Source symbols:
hookable.Hookable.hook,hookable.Hookable.hookOnce,hookable.Hookable.removeHook,hookable.Hookable.callHook,hookable.Hookable.callHookParallel