Skip to content
forma.
v3.2.0-rc.2
☰
Browse documentation
Start here
Application guides
API reference

Docs/API reference

FORMA 3.2

@getforma/core/compiled

Compiler-generated DOM construction support exposed through an optional runtime entry.

View source ↗Markdown ↓Source 3b6c776
On this page

These guides target the 3.2.0-rc.2 release candidate. It is a prerelease; check the release record and qualify your application before rollout. Generated from the installed, version-pinned 3.2.0-rc.2 TypeScript declarations. Signatures, overloads and JSDoc are taken from the package; private class members are omitted. Declaration links point to version-pinned package files.

This entry supports compiler output. Application authors should use the compiler instead of calling its construction helpers directly. It is separate from core’s ordinary entry and does not enable routing.

Read the usage guide or all entry points.

1 exports · published 3.2.0-rc.2 declarations

Internal integration exports

__createCompiledTemplate#

Internal integration export; not an application-facing stability promise. · Declaration, line 13

ts
declare function __createCompiledTemplate(markup: () => TrustedHtml, bindings: readonly CompiledBinding[]): (initialize: Initialize) => HTMLElement;

Compiler-only HTML construction. The compiler supplies escaped, closed markup and descriptors for every dynamic slot. The staged initializer preserves expression evaluation interleaved with initial binding effects. Its undefined-binder branch constructs the original JSX exactly once. No DOM or Trusted Types policy is touched until the first CSR invocation.

Related declarations: CompiledBinding, Initialize, TrustedHtml

Referenced declaration types

These types appear in the published signatures but are not separate named exports from this entry point. They are shown to explain the contract, not as additional import paths.

CompiledBinding#

Internal integration export; not an application-facing stability promise. · Declaration, line 4

ts
type CompiledBinding = readonly [
    path: readonly number[],
    kind: 0 | 1 | 2,
    key?: string
];

Initialize#

Referenced type; not separately importable from this entry point. · Declaration, line 5

ts
type Initialize = (bind?: (index: number, value: unknown) => void) => HTMLElement | void;

Other entry points

@getforma/core · @getforma/core/runtime · @getforma/core/runtime-hardened · @getforma/core/runtime-csp · @getforma/core/tc39 · @getforma/core/http · @getforma/core/storage · @getforma/core/navigation · JSX namespace

Find your next answer.

Search versioned Forma documentation, guides and examples.