Skip to content

Commit 75e5003

Browse files
committed
explicitly export classes and functions in index.ts
1 parent da271f6 commit 75e5003

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed
Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
export { HttpErrorCodes, HttpVerbs } from './constants.js';
2-
export * from './converters.js';
3-
export * from './errors.js';
2+
export {
3+
handlerResultToProxyResult,
4+
handlerResultToWebResponse,
5+
proxyEventToWebRequest,
6+
webResponseToProxyResult,
7+
} from './converters.js';
8+
export {
9+
BadRequestError,
10+
ForbiddenError,
11+
InternalServerError,
12+
MethodNotAllowedError,
13+
NotFoundError,
14+
ParameterValidationError,
15+
RequestEntityTooLargeError,
16+
RequestTimeoutError,
17+
RouteMatchingError,
18+
ServiceError,
19+
ServiceUnavailableError,
20+
UnauthorizedError,
21+
} from './errors.js';
422
export { Router } from './Router.js';
5-
export * from './utils.js';
23+
export {
24+
composeMiddleware,
25+
isAPIGatewayProxyEvent,
26+
isAPIGatewayProxyResult,
27+
isHttpMethod,
28+
} from './utils.js';

packages/event-handler/tests/unit/rest/utils.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import type { APIGatewayProxyEvent, APIGatewayProxyResult } from 'aws-lambda';
22
import { describe, expect, it } from 'vitest';
33
import {
4-
compilePath,
54
composeMiddleware,
65
isAPIGatewayProxyEvent,
76
isAPIGatewayProxyResult,
8-
validatePathPattern,
97
} from '../../../src/rest/index.js';
8+
import { compilePath, validatePathPattern } from '../../../src/rest/utils.js';
109
import type {
1110
Middleware,
1211
Path,

0 commit comments

Comments
 (0)