Skip to main content

Function: onCreating()

onCreating(model, callback)

onCreating<I>(model, callback): () => void

Type parameters

I extends ModelInstance

Parameters

model: Model<any, I>

callback

Returns

Function

Returns

void

Source

packages/core/src/model/hooks/onCreating.ts:3

onCreating(composable, callback)

onCreating<C>(composable, callback): () => void

Type parameters

C extends ModelComposable

Parameters

composable: C

callback

Returns

Function

Returns

void

Source

packages/core/src/model/hooks/onCreating.ts:3

onCreating(factory, callback)

onCreating<D>(factory, callback): () => void

Type parameters

D extends object

Parameters

factory: ModelFactory<D>

callback

Returns

Function

Returns

void

Source

packages/core/src/model/hooks/onCreating.ts:3