Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NumberModelProperty<M>

Type parameters

Hierarchy

  • ModelProperty<M, number | null | undefined, number | string | null | undefined>
    • NumberModelProperty

Callable

  • NumberModelProperty(): undefined | null | number
  • NumberModelProperty(state: undefined | null | string | number, precedence?: number): M
  • Returns undefined | null | number

  • Parameters

    • state: undefined | null | string | number
    • Optional precedence: number

    Returns M

Index

Constructors

constructor

  • new NumberModelProperty<M>(owner: M, propertyName: undefined | string): NumberModelProperty<M>
  • Type parameters

    Parameters

    • owner: M
    • propertyName: undefined | string

    Returns NumberModelProperty<M>

Properties

Readonly inherit

inherit: string | boolean

Readonly name

name: string

Readonly ownState

ownState: undefined | null | number

Readonly owner

owner: M

Readonly precedence

precedence: number

propertyFlags

propertyFlags: number

Readonly state

state: undefined | null | number

Readonly subProperties

subProperties: null | ModelProperty<Model, undefined | null | number, never>[]

Readonly superName

superName: undefined | string

Readonly superProperty

superProperty: null | ModelProperty<Model, undefined | null | number, never>

Readonly superState

superState: undefined | null | number

Optional updateFlags

updateFlags: number

Readonly updatedState

updatedState: undefined | null | number

Static InheritedFlag

InheritedFlag: number

Static MountedFlag

MountedFlag: number

Static OverrideFlag

OverrideFlag: number

Static UpdatedFlag

UpdatedFlag: number

Methods

addSubProperty

  • addSubProperty(subProperty: ModelProperty<Model, undefined | null | number, never>): void
  • Parameters

    Returns void

bindSuperProperty

  • bindSuperProperty(): void
  • Returns void

didMount

  • didMount(): void
  • Returns void

didSetPrecedence

  • didSetPrecedence(newPrecedence: number, oldPrecedence: number): void
  • Parameters

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

didSetState

  • didSetState(newState: undefined | null | number, oldState: undefined | null | number): void
  • Parameters

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns void

didUnmount

  • didUnmount(): void
  • Returns void

fromAny

  • fromAny(value: undefined | null | string | number): undefined | null | number
  • Parameters

    • value: undefined | null | string | number

    Returns undefined | null | number

getState

  • getState(): number
  • Returns number

getStateOr

  • getStateOr<E>(elseState: E): number | E
  • Type parameters

    • E

    Parameters

    • elseState: E

    Returns number | E

isInherited

  • isInherited(): boolean
  • Returns boolean

isMounted

  • isMounted(): boolean
  • Returns boolean

isUpdated

  • isUpdated(): boolean
  • Returns boolean

mount

  • mount(): void
  • Returns void

mutate

  • mutate(): void
  • Returns void

onMount

  • onMount(): void
  • Returns void

onMutate

  • onMutate(): void
  • Returns void

onMutateInherited

  • onMutateInherited(): void
  • Returns void

onSetPrecedence

  • onSetPrecedence(newPrecedence: number, oldPrecedence: number): void
  • Parameters

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

onSetState

  • onSetState(newState: undefined | null | number, oldState: undefined | null | number): void
  • Parameters

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns void

onUnmount

  • onUnmount(): void
  • Returns void

removeSubProperty

  • removeSubProperty(subProperty: ModelProperty<Model, undefined | null | number, never>): void
  • Parameters

    Returns void

setInherit

  • setInherit(inherit: string | boolean): void
  • Parameters

    • inherit: string | boolean

    Returns void

setInherited

  • setInherited(inherited: boolean): void
  • Parameters

    • inherited: boolean

    Returns void

setOwnState

  • setOwnState(state: undefined | null | string | number): void
  • Parameters

    • state: undefined | null | string | number

    Returns void

setPrecedence

  • setPrecedence(precedence: number): void
  • Parameters

    • precedence: number

    Returns void

setPropertyFlags

  • setPropertyFlags(propertyFlags: number): void
  • Parameters

    • propertyFlags: number

    Returns void

setState

  • setState(state: undefined | null | string | number, precedence?: number): void
  • Parameters

    • state: undefined | null | string | number
    • Optional precedence: number

    Returns void

takeState

  • takeState(): undefined | null | number
  • Returns undefined | null | number

takeUpdatedState

  • takeUpdatedState(): undefined | null | number
  • Returns undefined | null | number

takesPrecedence

  • takesPrecedence(precedence: number): boolean
  • Parameters

    • precedence: number

    Returns boolean

toString

  • toString(): string
  • Returns string

unbindSuperProperty

  • unbindSuperProperty(): void
  • Returns void

unmount

  • unmount(): void
  • Returns void

updateSubProperties

  • updateSubProperties(newState: undefined | null | number, oldState: undefined | null | number): void
  • Parameters

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns void

willMount

  • willMount(): void
  • Returns void

willSetPrecedence

  • willSetPrecedence(newPrecedence: number, oldPrecedence: number): void
  • Parameters

    • newPrecedence: number
    • oldPrecedence: number

    Returns void

willSetState

  • willSetState(newState: undefined | null | number, oldState: undefined | null | number): void
  • Parameters

    • newState: undefined | null | number
    • oldState: undefined | null | number

    Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Static define

  • Type parameters

    • M_7: Model<M_7>

    • T_7

    • U_7 = never

    • I_1 = {}

    Parameters

    Returns ModelPropertyConstructor<M_7, T_7, U_7, I_1>

  • Type parameters

    • M_8: Model<M_8>

    • T_8

    • U_8 = never

    Parameters

    Returns ModelPropertyConstructor<M_8, T_8, U_8, {}>

Static getClass

  • Parameters

    • type: unknown

    Returns null | ModelPropertyClass

Generated using TypeDoc