Skip to main content

sinho

Index

Type Aliases

Children

Children: Template | MaybeSignal<string | number | null | undefined> | Children[]

Cleanup

Cleanup: () => void | void | undefined | null

Represents the cleanup function of an effect.

Component

Component<M>: { -readonly [ K in keyof Props<M> ]: Props<M>[K] extends Signal<infer T> ? T : never } & ComponentInner<M> & HTMLElement

Type parameters

EventConstructor

EventConstructor<T, E>: new (name: string, arg: T) => E

Type parameters

  • T = any
  • E = Event

MaybeSignal

MaybeSignal<T>: SignalLike<T> | (T extends Function ? never : T)

Represents a value that can be a signal or a constant value.

Note that functions are not allowed as constant values.


Type parameters

  • T

Metadata

Metadata: { [ K in keyof ComponentInner<any> | props | events ]?: never } & { [ K in keyof DomProps<any> ]?: never } & { [ K in keyof HTMLElement ]?: never } & {}

Styles

Styles: { [ K in Exclude<keyof CSSStyleDeclaration, item | setProperty | removeProperty | getPropertyValue | getPropertyPriority | typeof Symbol.iterator | number> ]?: MaybeSignal<string | number | null | undefined> } & {}