@scm-js/plugin-api 1.69.0 → 1.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +14 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1395,6 +1395,20 @@ export interface Toast {
|
|
|
1395
1395
|
label: string;
|
|
1396
1396
|
run: () => void;
|
|
1397
1397
|
};
|
|
1398
|
+
/**
|
|
1399
|
+
* Buttons in a row under the text, for a notice that offers more than one way on — the
|
|
1400
|
+
* terrain notice's data set to switch to, folder to draw from and Game Data…. Pressing
|
|
1401
|
+
* one dismisses the toast unless it says `keep` (a button that opens a picker the person
|
|
1402
|
+
* may back out of).
|
|
1403
|
+
*/
|
|
1404
|
+
actions?: ToastAction[];
|
|
1405
|
+
}
|
|
1406
|
+
/** One of a toast's `actions`. */
|
|
1407
|
+
export interface ToastAction {
|
|
1408
|
+
label: string;
|
|
1409
|
+
run: () => void;
|
|
1410
|
+
/** Leave the toast up when pressed. */
|
|
1411
|
+
keep?: boolean;
|
|
1398
1412
|
}
|
|
1399
1413
|
/**
|
|
1400
1414
|
* The colour and layout codes StarCraft reads out of a string, and what a string looks
|