@toil/gm-types
Version:
All-in-One GM API types (Greasemonkey, Tampermonkey, Violetmonkey and etc)
25 lines (21 loc) • 575 B
text/typescript
import type { InfoFields, InfoScriptMeta, RunAtWithEmpty } from "./shared";
/**
* @example { "resourceName": "https://..." }
* @available OrangeMonkey
*/
export type Resource = { [resourceName: string]: string };
/**
* @available OrangeMonkey
*/
export type OMInfoScriptMeta = InfoScriptMeta<Resource> & {
unwrap: boolean;
"run-at": RunAtWithEmpty;
};
/**
* @available OrangeMonkey
*/
export type OMInfoFields = InfoFields<OMInfoScriptMeta> & {
scriptHandler: "OrangeMonkey";
downloadMode: "browser";
scriptWillUpdate: boolean;
};