mirror of
https://github.com/BrianHicks/elm-duet.git
synced 2024-08-17 01:20:49 +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 };
|
|
};
|
|
}
|
|
}
|