From 4d592eaf8252014199014bbd218a27493b860f33 Mon Sep 17 00:00:00 2001 From: Commandtechno <68407783+Commandtechno@users.noreply.github.com> Date: Wed, 23 Mar 2022 16:35:19 -0500 Subject: [PATCH] feat: Add declared typings! Noticed I wasn't getting typings using import in ts, so decided to add them This just puts `.d.ts` with the `.js` files An alternative format could be outputting the types to a types directory, and setting `types` in `package.json` --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 53c269e..7f5fb3f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,8 @@ "module": "commonjs", "allowJs": true, "checkJs": true, - "noEmit": true, + "declaration": true, + "emitDeclarationOnly": true, "noUnusedLocals": true, "noUnusedParameters": true },