locize-editor
locize-editor copied to clipboard
[TypeScript] Add Declaration File
Are there any plans to add type definitions for the editor?
I'm willing to help but I have zero experience with creating type definitions from scratch.
we neither ;) all our work is done in pure javascript...might be we could add that once we got a hire with deeper typescript background - but currently we would be depending on community PR.
@michivogler you could use const locizeEditor = require('locize-editor')
instead of import locizeEditor from 'locize-editor'
to get it working without type definitions.
or simply add a locize-editor.d.ts
file containing the following line declare module 'locize-editor';
.
This will result in the module typed as any. No typings but TS will not fail to compile.