modal dialog component
This commit is contained in:
4
components/modal.type.ts
Normal file
4
components/modal.type.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { Modal } from '#components';
|
||||
|
||||
// seems pretty stoopid that I need to do this in a seperate file but it seems to work
|
||||
export type ModalType = typeof Modal extends new () => infer T ? T : never;
|
||||
Reference in New Issue
Block a user