Powership / Modules / Entity / ExtendEntity
Entity.ExtendEntity
Name |
---|
Parent |
▸ ExtendEntity<TransformerReturn
>(transformer
): Parent
extends Origin
? { [K in string | number | symbol]: K extends keyof TransformerReturn ? TransformerReturn[K] : K extends keyof Origin ? Origin[K] : never } : never
Extend current entity
Name |
---|
TransformerReturn |
Name | Type |
---|---|
transformer |
(current : { [K in string | number | symbol as K extends _ExtendMethodKeys ? never : K]: Parent[K] }, utils : { extend : <V>(value : V ) => ExtendObjectDefinition <V , V > }) => TransformerReturn |
Parent
extends Origin
? { [K in string | number | symbol]: K extends keyof TransformerReturn ? TransformerReturn[K] : K extends keyof Origin ? Origin[K] : never } : never