@sberid/js-sdk
Version:
Javascript SDK для партнеров Сбер ID, упрощающая подключение SberbankID на сайте.
45 lines (41 loc) • 1.03 kB
text/typescript
export type NotificationPosition =
| 'right'
| 'left'
| 'top-right'
| 'bottom-right'
| 'top-left'
| 'bottom-left';
export interface NotificationProps {
enable: boolean;
onNotificationBannerClose?: () => void;
onNotificationBannerOpen?: () => void;
animation?: boolean;
position?: NotificationPosition;
autoCloseDelay?: number;
autoClose?: boolean;
offset?: {
top: number;
bottom: number;
left: number;
right: number;
};
}
export interface NotificationConfig {
enable: boolean;
onClose?: () => void;
onOpen?: () => void;
animation: boolean;
position: NotificationPosition;
autoCloseDelay: number;
autoClose: boolean;
offset: {
top: number;
bottom: number;
left: number;
right: number;
};
sa: boolean;
debug: boolean;
fastLogin: boolean;
}
export type fadeFn = (el: HTMLDivElement, time: number) => Promise<void>;