fix: cli error

This commit is contained in:
Xmader 2020-12-06 12:32:13 -05:00
parent 557a531e5b
commit 741684329a
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ declare const GM: {
/** https://github.com/Tampermonkey/tampermonkey/issues/881#issuecomment-639705679 */ /** https://github.com/Tampermonkey/tampermonkey/issues/881#issuecomment-639705679 */
addElement<K extends keyof HTMLElementTagNameMap> (tagName: K, properties: Record<string, any>): Promise<HTMLElementTagNameMap[K]>; addElement<K extends keyof HTMLElementTagNameMap> (tagName: K, properties: Record<string, any>): Promise<HTMLElementTagNameMap[K]>;
} }
export const _GM = GM export const _GM = (typeof GM === 'object' ? GM : undefined) as GM
type GM = typeof GM type GM = typeof GM