chore(package): add missing typings

This commit is contained in:
Luke
2023-02-15 13:51:46 +01:00
parent 829bec2592
commit 66585521b4
4 changed files with 39 additions and 9 deletions

View File

@@ -1,11 +1,19 @@
import { CSSProperties } from 'react';
import { IconName, IconPrefix } from '@fortawesome/fontawesome-common-types';
type NotificationPosition = 'top' | 'top-right' | 'top-left' | 'bottom' | 'bottom-right' | 'bottom-left';
type NotificationPosition =
| 'top'
| 'top-right'
| 'top-left'
| 'bottom'
| 'bottom-right'
| 'bottom-left'
| 'center-right'
| 'center-left';
type NotificationType = 'inform' | 'error' | 'success';
interface NotifyProps {
id?: string;
id?: string | number;
title?: string;
description?: string;
duration?: number;
@@ -18,6 +26,7 @@ interface NotifyProps {
export const notify = (data: NotifyProps): void => exports.ox_lib.notify(data);
// Keep for backwards compat with v2
interface DefaultNotifyProps {
title?: string;
description?: string;