diff --git a/sources/src/GM.ts b/sources/src/GM.ts index 7d81b14..e77e689 100644 --- a/sources/src/GM.ts +++ b/sources/src/GM.ts @@ -1,8 +1,4 @@ /* eslint-disable @typescript-eslint/naming-convention */ -interface XMLHttpRequestDetails extends XMLHttpRequest{ - anonymous?: boolean -} - export type GM = { getValue(key: string, defaultValue: undefined): Promise setValue(key: string, value: string): Promise @@ -13,7 +9,7 @@ export type GM = { version: string } } - xmlHttpRequest(XMLHttpRequestDetails: XMLHttpRequestDetails, onload?: ( + xmlHttpRequest(XMLHttpRequestDetails: {url: string, method?: 'GET' | 'POST'}, onload?: ( status: number, statusText: string, readyState: number,