-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add TypeScript types #74
Comments
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 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;
} |
AlexErrant
added a commit
to AlexErrant/Pentive
that referenced
this issue
Aug 1, 2023
FYI:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: