Skip to content

ref

import { ref } from "@alloy-js/python";
function ref(refkey: Refkey, options?: RefOptions): () => [Children, PythonOutputSymbol | undefined];
refkey

Refkey

optionsoptional

RefOptions

typeoptionalboolean

If true, this reference is only used in a type annotation context. The import will be guarded with if TYPE_CHECKING:.

() => [Children, [unresolved link] | undefined]