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",