Skip to content

RemoveChildMutation

Remove a child

Extends

Constructors

new RemoveChildMutation()

new RemoveChildMutation(parent, obj): RemoveChildMutation

Parameters

parent: Obj

obj: Obj

Returns

RemoveChildMutation

Overrides

Mutation.constructor

Source

core/transaction.ts:212

Properties

obj

obj: Obj

Source

core/transaction.ts:209


parent

parent: Obj

Source

core/transaction.ts:208


position

position: number

Source

core/transaction.ts:210


type

type: string

Inherited from

Mutation.type

Source

core/transaction.ts:18

Methods

apply()

apply(store): void

Parameters

store: Store

Returns

void

Overrides

Mutation.apply

Source

core/transaction.ts:224


toJSON()

toJSON(): object

Returns

object

obj

obj: Obj

op

op: string

parentId

parentId: string

position

position: number

Overrides

Mutation.toJSON

Source

core/transaction.ts:242


unapply()

unapply(store): void

Parameters

store: Store

Returns

void

Overrides

Mutation.unapply

Source

core/transaction.ts:233