Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix: syntax error of GM.xmlHttpRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Mar 30, 2024
1 parent 1b327ca commit e31a0df
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions sources/src/GM.ts
Original file line number Diff line number Diff line change
@@ -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<string | undefined>
setValue(key: string, value: string): Promise<void>
Expand All @@ -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,
Expand Down

0 comments on commit e31a0df

Please sign in to comment.