elm-duet/ideal.d.ts

19 lines
586 B
TypeScript
Raw Normal View History

2024-04-11 14:39:04 +03:00
declare namespace Elm {
class Main {
static init({
node: Element,
flags: { currentTimeMillis: number, notificationPermission: string },
}): Main;
ports: {
changeDocument: { subscribe(callback: (value: unknown) => void): void };
docFromAutomerge: { send(value: unknown): void };
gotNewNotificationsPermission: { send(value: string): void };
requestNotificationsPermission: {
subscribe(callback: (value: null) => void): void;
};
sendNotification: { subscribe(callback: (value: unknown) => void): void };
};
}
}