UNPKG

@palmares/databases

Version:

Add support for working with databases with palmares framework

4 lines 452 B
import type { model } from '../models'; import type { onRemoveFunction, onSetFunction } from '../models/types'; export declare function extractDefaultEventsHandlerFromModel<TModel extends InstanceType<ReturnType<typeof model>>, TFunctionType extends 'onSet' | 'onRemove'>(modelInstance: TModel, functionType: TFunctionType): (TFunctionType extends 'onSet' ? onSetFunction<TModel> : onRemoveFunction<TModel>) | void; //# sourceMappingURL=models.d.ts.map