Skip to content

Commit

Permalink
Merge pull request #51 from yokuze/export_types_22
Browse files Browse the repository at this point in the history
feat: Export types used in the public interface (#22)
  • Loading branch information
jthomerson authored Apr 16, 2019
2 parents b0545d8 + 8097fef commit a25f999
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,37 @@ export {
Response,
Router,
};

// We need to export only types that are used in public interfaces (e.g. those used in
// concrete classes like Application, Request, Response, Router, exported above).
export {
IRoute,
IRouter,
PathParams,
NextCallback,
RouterOptions,
RequestProcessor,
AnyRequestProcessor,
ProcessorOrProcessors,
ErrorHandlingRequestProcessor,
} from './interfaces';

export {
CookieOpts,
RequestEvent,
HandlerContext,
LambdaEventSourceType,
RequestEventRequestContext,
} from './request-response-types';

export {
StringMap,
StringUnknownMap,
KeyValueStringObject,
StringArrayOfStringsMap,
} from '@silvermine/toolbox';

export {
ILogger,
LogLevel,
} from './logging/logging-types';

0 comments on commit a25f999

Please sign in to comment.