@t3mode/plugin-sdk 1.0.1 → 1.0.2
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/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export interface PluginApi<O extends OptionsSpec = OptionsSpec> {
|
|
|
36
36
|
/** Creates an element owned by the plugin. It is removed when the plugin stops. */
|
|
37
37
|
readonly element: <K extends keyof HTMLElementTagNameMap>(tag: K) => HTMLElementTagNameMap[K];
|
|
38
38
|
readonly onCleanup: (cleanup: () => void) => void;
|
|
39
|
-
/** JSON in
|
|
39
|
+
/** JSON in <home>/plugin-data/<id>.json. Deleted when the plugin is removed or uninstall --purge runs. */
|
|
40
40
|
readonly storage: {
|
|
41
41
|
readonly get: <T>(key: string, fallback: T) => T;
|
|
42
42
|
readonly set: (key: string, value: unknown) => void;
|