# Function generatePath

- generatePath<Path>(originalPath, params?): string

- Returns a path with params interpolated.

  #### Type Parameters

  - Path extends string

  #### Parameters

  - originalPath: Path
  - `Optional` params: {
    [key in string]: string
    }

  #### Returns string

  #### See

  https://reactrouter.com/utils/generate-path

  - Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/utils.d.ts:337