From a8895dcfe7633574c14360279ef65fa01312654a Mon Sep 17 00:00:00 2001 From: joeward98 Date: Thu, 9 Jun 2022 13:28:28 +0100 Subject: [PATCH] added autogenerated type exports at top level of package --- lib/index.d.ts | 4 ++++ lib/index.js | 1 - src/index.ts | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 4bebcc2..0fc2ac7 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1 +1,5 @@ export * as Management from "./management"; +import * as GeneratedTypes from "./internal/reference/index"; +export declare type ManagementTypesV2 = GeneratedTypes.V2.Operation; +export declare type ManagementTypesV3 = GeneratedTypes.V3.Operation; +export declare type StorefrontTypes = GeneratedTypes.Storefront.Operation; diff --git a/lib/index.js b/lib/index.js index 654722f..9001ccd 100644 --- a/lib/index.js +++ b/lib/index.js @@ -21,4 +21,3 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); exports.Management = void 0; exports.Management = __importStar(require("./management")); -// export * as Storefront from "./storefront" diff --git a/src/index.ts b/src/index.ts index 3ab9083..cf1612d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,8 @@ export * as Management from "./management"; // export * as Storefront from "./storefront" + +import * as GeneratedTypes from "./internal/reference/index" + +export type ManagementTypesV2 = GeneratedTypes.V2.Operation; +export type ManagementTypesV3 = GeneratedTypes.V3.Operation; +export type StorefrontTypes = GeneratedTypes.Storefront.Operation;