From 82b2fbc79d8a2e928821509482e880f5dc6fc3d8 Mon Sep 17 00:00:00 2001 From: Mark Davison Date: Wed, 22 May 2024 19:16:45 +0100 Subject: [PATCH] Add types to package --- index.d.ts | 4 ++++ package.json | 4 +++- 2 files changed, 7 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..1dbc2fd --- /dev/null +++ b/index.d.ts @@ -0,0 +1,4 @@ +declare module '@costa-coffee/jws' { + export * from 'jws'; + } + \ No newline at end of file diff --git a/package.json b/package.json index 023ec0b..233123b 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "@costa-coffee/jws", - "version": "4.1.0", + "version": "4.1.1", "description": "Implementation of JSON Web Signatures", "main": "index.js", + "types": "index.d.ts", "directories": { "test": "test" }, @@ -25,6 +26,7 @@ "gitHead": "c0f6b27bcea5a2ad2e304d91c2e842e4076a6b03", "dependencies": { "@costa-coffee/jwa": "^2.1.0", + "@types/jws": "^3.0.0", "safe-buffer": "^5.0.1" }, "devDependencies": {