From eb7d8df9cf1a8fb0f677f0462e62ae5269c69bc2 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Wed, 13 Jan 2021 14:26:48 -0500 Subject: [PATCH] Export types. Fixes #865 --- .eslintignore | 3 ++- src/lib/@types/index.d.ts | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.eslintignore b/.eslintignore index 07ed7069..2c7ea48e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,2 @@ -build/* \ No newline at end of file +build/* +/**/*.d.ts \ No newline at end of file diff --git a/src/lib/@types/index.d.ts b/src/lib/@types/index.d.ts index f1334db3..c9b7b701 100644 --- a/src/lib/@types/index.d.ts +++ b/src/lib/@types/index.d.ts @@ -1,20 +1,20 @@ declare module 'simple-keyboard' { - interface KeyboardLayoutObject { + export interface KeyboardLayoutObject { [key: string]: string[]; } - interface KeyboardButtonTheme { + export interface KeyboardButtonTheme { class: string; buttons: string; } - interface KeyboardButtonAttributes { + export interface KeyboardButtonAttributes { attribute: string; value: string; buttons: string; } - interface KeyboardOptions { + export interface KeyboardOptions { /** * Modify the keyboard layout. */