---
url: /api/specs/openapi-utils/types/utils/function-match-path.md
description: api documentation of matchPath from @tsed/openapi-utils
---

## Usage

```typescript
import { matchPath } from "@tsed/openapi-utils";
```

> See [/packages/specs/openapi-utils/src/utils/matchPath.ts](https://github.com/tsedio/tsed/blob/v8.38.4/packages/specs/openapi-utils/src/utils/matchPath.ts#L0-L0).

## Overview

```ts
function matchPath(path: string, patterns?: string[]): boolean;
```
