Skip to content

ref

import { ref } from "@alloy-js/python";
function ref(refkey: Refkey, options?: RefOptions): () => [Children, PythonOutputSymbol | undefined];
refkeyRefkey
optionsoptional RefOptions
typeoptional booleanIf true, this reference is only used in a type annotation context. The import will be guarded with if TYPE_CHECKING:.

() => [Children, PythonOutputSymbol | undefined]