@morph-mapper/source / getEntries
Function: getEntries()
getEntries<
T>(obj):Entries<T>
Defined in: mapping.ts:24
This function takes an object and returns an array of its entries. Object.entries usually loosens the return type, but this function returns narrower types based on the type of the object.
Type Parameters
T
T extends object
Parameters
obj
T
Returns
Entries<T>