From 0a712f1bb52e1ab3fb9f63b1bb217da5547fb25a Mon Sep 17 00:00:00 2001 From: George Pickering <29524044+geopic@users.noreply.github.com> Date: Mon, 22 Feb 2021 12:51:06 +0000 Subject: [PATCH] Add types declaration file --- index.d.ts | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..6c6c663 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,5 @@ +export const WORD_HIGHLIGHTER: string; +export function registerColors(newColors: string[]): void; +export const colors: string[]; +export function renderHtml(block: string): string; +export function generateCss(): string; diff --git a/package.json b/package.json index 9f6122c..05c2561 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.1.4", "description": "Highlight plaintext words of your choosing", "main": "index.js", + "types": "index.d.ts", "scripts": { "test": "jest", "lint": "eslint ./src/**/*.js ./index.js",