diff --git a/packages/io-ts-http/src/httpRoute.ts b/packages/io-ts-http/src/httpRoute.ts index a2384299..f18aed71 100644 --- a/packages/io-ts-http/src/httpRoute.ts +++ b/packages/io-ts-http/src/httpRoute.ts @@ -13,8 +13,10 @@ export const Method = t.keyof({ export type Method = t.TypeOf; +export type PathString = `/${string}`; + export type HttpRoute = { - readonly path: string; + readonly path: PathString; readonly method: Uppercase; readonly request: HttpRequestCodec; readonly response: HttpResponse;