Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / src/public-api / DefinedInput

Type Alias: DefinedInput<Top, Shape>

DefinedInput<Top, Shape> = { [K in keyof Shape]: Shape[K] extends Scope<any> ? Shape[K] : Shape[K] extends readonly any[] ? DefinedValue<Top, Shape[K]> : Shape[K] extends Record<string, any> ? DefinedInput<Top, Shape[K]> | DefinedValue<Top, Shape[K]> : DefinedValue<Top, Shape[K]> }

Defined in: projects/libraries/streamix/src/lib/atoms/scope.ts:367

Input-shape type for scope. Each property may be either its final value or a function that receives the typed scope self and returns that value. Functions are automatically wrapped in derived atoms.

Type Parameters

Top

Top extends Record<string, any>

Shape

Shape extends Record<string, any> = Top

Released under the GNU AGPL v3 or later.