mirror of
https://github.com/BrianHicks/elm-duet.git
synced 2024-11-22 12:13:14 +03:00
19 lines
586 B
TypeScript
19 lines
586 B
TypeScript
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 };
|
|
};
|
|
}
|
|
}
|