Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TraitFastener<R, S, U>

Type parameters

Hierarchy

  • TraitFastener

Callable

  • TraitFastener(): null | S
  • TraitFastener(trait: null | S | U, targetTrait?: null | Trait): R
  • Returns null | S

  • Parameters

    • trait: null | S | U
    • Optional targetTrait: null | Trait

    Returns R

Index

Properties

fastenerFlags

fastenerFlags: number

Readonly key

key: undefined | string

Readonly name

name: string

Optional observe

observe: boolean

Readonly owner

owner: R

Readonly parentModel

parentModel: null | Model

Optional sibling

sibling: boolean

Readonly trait

trait: null | S

Optional Readonly type

type: unknown

Methods

attachTrait

  • attachTrait(newTrait: S): void
  • Parameters

    • newTrait: S

    Returns void

createTrait

  • createTrait(): null | S | U
  • Returns null | S | U

detachTrait

  • detachTrait(oldTrait: S): void
  • Parameters

    • oldTrait: S

    Returns void

didMount

  • didMount(): void
  • Returns void

didSetTrait

  • didSetTrait(newTrait: null | S, oldTrait: null | S, targetTrait: null | Trait): void
  • Parameters

    • newTrait: null | S
    • oldTrait: null | S
    • targetTrait: null | Trait

    Returns void

didUnmount

  • didUnmount(): void
  • Returns void

doSetTrait

  • doSetTrait(newTrait: null | S, targetTrait: null | Trait): void
  • Parameters

    • newTrait: null | S
    • targetTrait: null | Trait

    Returns void

fromAny

  • fromAny(value: S | U): null | S
  • Parameters

    • value: S | U

    Returns null | S

getTrait

  • getTrait(): S
  • Returns S

injectTrait

  • injectTrait(parentModel?: null | Model, trait?: null | S | U, targetTrait?: null | Trait, key?: null | string): null | S
  • Parameters

    • Optional parentModel: null | Model
    • Optional trait: null | S | U
    • Optional targetTrait: null | Trait
    • Optional key: null | string

    Returns null | S

insertTrait

  • insertTrait(parentModel: Model, trait: S, targetTrait: null | Trait, key: undefined | string): void
  • Parameters

    • parentModel: Model
    • trait: S
    • targetTrait: null | Trait
    • key: undefined | string

    Returns void

isMounted

  • isMounted(): boolean
  • Returns boolean

mount

  • mount(): void
  • Returns void

onMount

  • onMount(): void
  • Returns void

onSetTrait

  • onSetTrait(newTrait: null | S, oldTrait: null | S, targetTrait: null | Trait): void
  • Parameters

    • newTrait: null | S
    • oldTrait: null | S
    • targetTrait: null | Trait

    Returns void

onUnmount

  • onUnmount(): void
  • Returns void

removeTrait

  • removeTrait(): null | S
  • Returns null | S

setFastenerFlags

  • setFastenerFlags(fastenerFlags: number): void
  • Parameters

    • fastenerFlags: number

    Returns void

setTrait

  • setTrait(newTrait: null | S | U, targetTrait?: null | Trait): null | S
  • Parameters

    • newTrait: null | S | U
    • Optional targetTrait: null | Trait

    Returns null | S

unmount

  • unmount(): void
  • Returns void

willMount

  • willMount(): void
  • Returns void

willSetTrait

  • willSetTrait(newTrait: null | S, oldTrait: null | S, targetTrait: null | Trait): void
  • Parameters

    • newTrait: null | S
    • oldTrait: null | S
    • targetTrait: null | Trait

    Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Generated using TypeDoc