Skip to content

Instantly share code, notes, and snippets.

View mkvlrn-cm42's full-sized avatar
👋
hey!

Mike mkvlrn-cm42

👋
hey!
View GitHub Profile
@mkvlrn-cm42
mkvlrn-cm42 / mantine.d.ts
Created May 28, 2024 21:14
workaround for importing mantine extensions (such as @mantine/notifications) in a pure esm, vite project and get types working
import { Notification } from 'node_modules/@mantine/notifications/lib/Notifications.d.ts';
import { notifications } from 'node_modules/@mantine/notifications/lib/notifications.store.d.ts';
declare module '@mantine/notifications' {
export = { Notification, notifications };
}