Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ModelTraitInit<S, U>

Type parameters

Hierarchy

  • ModelTraitInit

Index

Properties

Optional extends

Optional key

key: string | boolean

Optional observe

observe: boolean

Optional parentModel

parentModel: null | Model

Optional sibling

sibling: boolean

Optional type

type: unknown

Methods

Optional createTrait

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

Optional didSetTrait

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

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

    Returns void

Optional fromAny

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

    • value: S | U

    Returns null | S

Optional 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

Optional onSetTrait

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

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

    Returns void

Optional willSetTrait

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

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

    Returns void

Generated using TypeDoc