@orpc/contract
Advanced tools
Comparing version 0.0.0-next.55d0b4f to 0.0.0-next.568a5ad
@@ -62,2 +62,5 @@ // src/procedure.ts | ||
this.zz$crb = zz$crb; | ||
if (zz$crb.prefix && zz$crb.prefix.includes("{")) { | ||
throw new Error('Prefix cannot contain "{" for dynamic routing'); | ||
} | ||
} | ||
@@ -64,0 +67,0 @@ prefix(prefix) { |
@@ -36,2 +36,3 @@ import type { HTTPMethod, HTTPPath, Schema, SchemaInput, SchemaOutput } from './types'; | ||
} | ||
export type WELL_CONTRACT_PROCEDURE = ContractProcedure<Schema, Schema>; | ||
export declare class DecoratedContractProcedure<TInputSchema extends Schema, TOutputSchema extends Schema> extends ContractProcedure<TInputSchema, TOutputSchema> { | ||
@@ -38,0 +39,0 @@ static decorate<TInputSchema extends Schema, TOutputSchema extends Schema>(cp: ContractProcedure<TInputSchema, TOutputSchema>): DecoratedContractProcedure<TInputSchema, TOutputSchema>; |
{ | ||
"name": "@orpc/contract", | ||
"type": "module", | ||
"version": "0.0.0-next.55d0b4f", | ||
"version": "0.0.0-next.568a5ad", | ||
"license": "MIT", | ||
@@ -35,3 +35,3 @@ "homepage": "https://orpc.unnoq.com", | ||
"dependencies": { | ||
"@orpc/shared": "0.0.0-next.55d0b4f" | ||
"@orpc/shared": "0.0.0-next.568a5ad" | ||
}, | ||
@@ -38,0 +38,0 @@ "scripts": { |
12666
281
238
238
+ Added@orpc/shared@0.0.0-next.568a5ad(transitive)
- Removed@orpc/shared@0.0.0-next.55d0b4f(transitive)