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

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