Currently, I am working with Kendo UI for React and TypeScript. My goal is to import the Kendo UI typings for TypeScript using a "typeof import".
Following the guidance provided at https://docs.telerik.com/kendo-ui/third-party/typescript, I successfully installed the kendo-ui typings:
npm install --save @types/kendo-ui
In order to reference it in my .tsx file, I added the line:
declare var Grid: typeof import("kendo-ui");
However, I encountered an error message stating:
@types/kendo-ui/index.d.ts is not a module
This seems to be because the file in the node_modules directory does not contain proper imports or exports.
How can I effectively import the Kendo-UI TypeScript types into my .tsx module?