Skip to content

Commit 785ab80

Browse files
committed
feat: cleanup
1 parent 78d24ba commit 785ab80

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ export {AuthPolicy} from './types';
1818

1919
export * from './csp';
2020

21-
export {withContract, ValidationError} from './validator';
21+
export {withContract, ValidationError, getContract, getErrorContract} from './validator';
2222

2323
export type {ContractRequest, ContractResponse, RouteContract} from './validator';

src/validator/contract-registry.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ export function getContract(handler: AppRouteHandler): RouteContract | undefined
1111
return contractRegistry.get(handler);
1212
}
1313

14-
export function getRouteContract(handler: AppRouteHandler): RouteContract | undefined {
15-
return getContract(handler);
16-
}
17-
1814
const errorContractRegistry = new WeakMap<AppErrorHandler, ErrorContract>();
1915

2016
export function registerErrorContract(handler: AppErrorHandler, contract: ErrorContract): void {

src/validator/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export {ValidationError, ResponseValidationError as SerializationError} from './
1919
export * from './types';
2020
export {
2121
getContract,
22-
getRouteContract,
2322
registerContract,
2423
getErrorContract,
2524
registerErrorContract,

0 commit comments

Comments
 (0)