From d5419b99305ae36b533fd68acc381a7d404e9815 Mon Sep 17 00:00:00 2001 From: tjallingt Date: Fri, 27 Oct 2023 15:10:12 +0200 Subject: [PATCH] fix: onInit and onRender are always called with the instance --- src/lib/interfaces.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/interfaces.ts b/src/lib/interfaces.ts index b15cbe24..cba5aa9f 100644 --- a/src/lib/interfaces.ts +++ b/src/lib/interfaces.ts @@ -264,12 +264,12 @@ export interface KeyboardOptions { /** * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts). */ - onRender?: (instance?: SimpleKeyboard) => void; + onRender?: (instance: SimpleKeyboard) => void; /** * Executes the callback function once simple-keyboard is rendered for the first time (on initialization). */ - onInit?: (instance?: SimpleKeyboard) => void; + onInit?: (instance: SimpleKeyboard) => void; /** * Retrieves the current input @@ -295,4 +295,4 @@ export interface KeyboardOptions { * Module options can have any format */ [name: string]: any; -} \ No newline at end of file +}