From 724e6f911c14e3b7e7873559ba129c3f9be2656d Mon Sep 17 00:00:00 2001 From: Alex Rattray Date: Fri, 27 Aug 2021 18:27:26 -0400 Subject: [PATCH] Export types from the package root Currently I have to do this: ```ts import type { OpenAPIV3 } from "express-openapi-validator/dist/framework/types"; ``` Looking through the `framework/types.ts` file, it seems many of the types might be useful to users of the library, though I'm not sure if that's true of all of them. --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 60a8b949..6af4d40d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,7 @@ export const error = { }; export * as serdes from './framework/base.serdes'; +export * from './framework/types'; function openapiValidator(options: OpenApiValidatorOpts) { const oav = new OpenApiValidator(options);