const makeContext:
MakeContext
= interface MakeContext {
<T>(
initialValue: T,
displayName?: string,
) => LiveContext<T>
<T>(
initialValue: undefined,
displayName?: string,
) => LiveContext<T>
<T>(
initialValue: null,
displayName?: string,
) => LiveContext<T | null>
}
Make Live context for holding shared value for child nodes (defaulted, required or optional).
packages / live / src / builtin.ts