Skip to content

createRouteMapping

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/types/route-mapping.ts

Create a route mapping with defaults

Signature

ts
function createRouteMapping(options: Pick<RouteMapping, 'path' | 'routeFile' | 'framework'> &
    Partial<Omit<RouteMapping, 'path' | 'routeFile' | 'framework'>>): RouteMapping

Parameters

NameType
options`Pick<RouteMapping, 'path'
Partial<Omit<RouteMapping, 'path' | 'routeFile' | 'framework'>>` |

Returns: RouteMapping

Was this page helpful?

Download as PDF