Function defaultValueMiddleware
- defaultValueMiddleware<T, K>(field: K, value: ((metadata: undefined | T["metadata"]) => T["plainModel"][K])): DAOMiddleware<T>
-
Type Parameters
-
T extends DAOGenerics<any, any, any, any, any, any, any, any, any, any, any, any, any, AbstractEntityManager<string, string, any, any>, T>
-
K extends string | number | symbol
Parameters
-
field: K
-
value: ((metadata: undefined | T["metadata"]) => T["plainModel"][K])
-
- (metadata: undefined | T["metadata"]): T["plainModel"][K]
-
Parameters
-
metadata: undefined | T["metadata"]
Returns T["plainModel"][K]