configureBaseResources

Function

Takes the resources prop from an entity model and returns an array of objects with a filename and resource to be created.

  • configureBaseResources(resources: Record<stringany>, entityResourceMap: Record<stringstring>) : Array<{
    filename:
    string
    resource:
    any
    }>

Parameters

Parameter Type Default Notes
resources Required Record<stringany>
entityResourceMap Required Record<stringstring>

Returns

Array<{
filename:
string
resource:
any
}>

Function defined in common/src/core/_internal/configureBaseResources.ts:8