mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
feat(package): interface definitions
This commit is contained in:
10
package/client/resource/interface/alert.ts
Normal file
10
package/client/resource/interface/alert.ts
Normal file
@@ -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);
|
||||
Reference in New Issue
Block a user