From 222b1224e602f69153eae52b3607929e0c814ad8 Mon Sep 17 00:00:00 2001 From: Alex Layton Date: Thu, 14 Apr 2022 12:12:15 -0400 Subject: [PATCH] Fix types on index file --- index.d.ts | 23 +++++++++++++++++++++++ package.json | 5 ++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..4c5110c --- /dev/null +++ b/index.d.ts @@ -0,0 +1,23 @@ +/** + * Copyright 2022 Alex Layton + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from './dist/core'; + +export * as browser from './dist/browser'; + +export * as node from './dist/node'; + +export * as middleware from './dist/middleware'; diff --git a/package.json b/package.json index e06c6e6..850395e 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "@oada/id-client", - "version": "2.0.0", + "version": "2.0.1", "description": "OADA identity client library for Node.JS and Browser", "main": "index.js", + "types": "index.d.ts", "browser": { ".": "dist/browser.js", "./dist/node-browser.js": false @@ -11,6 +12,8 @@ "node": ">=12.0.0" }, "files": [ + "index.js", + "index.d.ts", "src/", "dist/" ],