File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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```
Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments