feat(package): interface definitions

This commit is contained in:
Luke committed 2022-09-14 13:50:32 +02:00
1 parent 863ac03ca3
commit 4f0cc4c7c5
17 files changed
+355

No files matched your search

@@ -0,0 +1,10 @@
interface AlertDialogProps {
header: string;
content: string;
centered?: boolean;
cancel?: boolean;
}
type alertDialog = (data: AlertDialogProps) => Promise<'cancel' | 'confirm'>;
export const alertDialog: alertDialog = async (data) => await exports.ox_lib.alertDialog(data);