Closed mihkeleidast closed 4 years ago
Resolves #109.
This will allow importing of the additional types. For testing, this is now valid TS:
import whatInput, { InputMethod, Strategy } from 'what-input'; const handleInputChange = (type: InputMethod) => { console.log(type); }; whatInput.registerOnChange(handleInputChange, 'intent'); whatInput.unRegisterOnChange(handleInputChange); const getInputMethod = (strategy: Strategy) => { return whatInput.ask(strategy); };
Thanks @mihkeleidast and @greypants! This has been published to NPM as version 5.2.10
Resolves #109.
This will allow importing of the additional types. For testing, this is now valid TS: