Skip to content

Commit ffa8606

Browse files
committed
Add MarkEdit.onAppReady() event
1 parent 4198d23 commit ffa8606

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Add `markedit-api` to your (TypeScript) project's devDependencies:
1919
```json
2020
{
2121
"devDependencies": {
22-
"markedit-api": "https://github.com/MarkEdit-app/MarkEdit-api#v0.25.0"
22+
"markedit-api": "https://github.com/MarkEdit-app/MarkEdit-api#v0.26.0"
2323
}
2424
}
2525
```

index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ export interface MarkEdit {
147147
*/
148148
relaunchApp(): void;
149149

150+
/**
151+
* Get notified when the app is ready.
152+
*
153+
* For a user script, this is ensured to be called only once during the app lifecycle.
154+
* @param listener The callback function to be called when the app is ready.
155+
*/
156+
onAppReady(listener: () => void): void;
157+
150158
/**
151159
* Get notified when the editor is initialized.
152160
* @param listener The callback function with the initialized editor instance.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markedit-api",
3-
"version": "0.25.0",
3+
"version": "0.26.0",
44
"description": "Type definitions for the latest MarkEdit API.",
55
"main": "./index.cjs",
66
"module": "./index.js",

0 commit comments

Comments
 (0)