Open milan-gm opened 1 year ago
Hey, I got the same exact error after installing.
To get around this issue you can add custom types to your project, e.g. at nightwind-helper.d.ts
:
declare module "nightwind/helper" {
type NightwindHelperModule = {
init: () => string;
beforeTransition: () => void;
toggle: () => void;
enable: (dark: boolean) => void;
checkNightMode: () => boolean;
watchNightMode: () => void;
addNightModeSelector: () => void;
addNightTransitions: () => void;
initNightwind: () => void;
toggleNightMode: () => void;
};
const nightwindHelper: NightwindHelperModule;
export default nightwindHelper;
}
FYI: @types/nightwind
is now avaliable.
You can install it via
npm install --save-dev @types/nightwind