Skip to content

Instantly share code, notes, and snippets.

View mkvlrn's full-sized avatar
👋
hey!

Mike Valeriano mkvlrn

👋
hey!
View GitHub Profile
@mkvlrn
mkvlrn / 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 };
}