Interface TraitFastenerInit<S, U>
Properties
Optional extends
Optional key
key: string | boolean
Optional observe
observe: boolean
Optional parentModel
parent
Model: 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
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