middleware icon indicating copy to clipboard operation
middleware copied to clipboard

Export RouteConfig to allow wrappers around createRoute

Open Gablas opened this issue 2 years ago • 2 comments

Make it easy to wrap createRoute

Gablas avatar Feb 01 '24 15:02 Gablas

⚠️ No Changeset found

Latest commit: 9f9abd910f409bd80afdedf1d3fc8d49486a061d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Feb 01 '24 15:02 changeset-bot[bot]

Hi @Gablas

Not a bad idea, but you can import directly from @asteasolutions/zod-to-openapi.

import type { RouteConfig } from '@asteasolutions/zod-to-openapi'

If other users don't have much chance to use RouteConfig, we don't have to accept this PR.

yusukebe avatar Feb 01 '24 22:02 yusukebe

#532, the same purpose was merged. Thanks!

yusukebe avatar May 19 '24 22:05 yusukebe