UNPKG

@sleeperhq/mini-core

Version:

Core library frameworks for developing Sleeper Mini Apps.

9 lines (8 loc) 477 B
import { NavigationParams, NavigationScreen, ToastConfig, Notification } from '@sleeperhq/mini-core/declarations/types'; export type SleeperActions = { navigate?: <T extends NavigationScreen>(screen: T, params?: NavigationParams[T]) => void; requestLocation?: () => void; showToast?: (toastData: ToastConfig) => void; scheduleNotification?: (notification: Notification) => Promise<string>; cancelNotification?: (notificationId: string) => Promise<void>; };