Added PUT method to http helper
This commit is contained in:
parent
afb6ca0803
commit
adcd6eaf79
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/utils",
|
"name": "@ztimson/utils",
|
||||||
"version": "0.15.4",
|
"version": "0.15.5",
|
||||||
"description": "Utility library",
|
"description": "Utility library",
|
||||||
"author": "Zak Timson",
|
"author": "Zak Timson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -10,7 +10,7 @@ export type HttpRequestOptions = {
|
|||||||
decode?: boolean;
|
decode?: boolean;
|
||||||
fragment?: string;
|
fragment?: string;
|
||||||
headers?: {[key: string | symbol]: string | null | undefined};
|
headers?: {[key: string | symbol]: string | null | undefined};
|
||||||
method?: 'GET' | 'POST' | 'PATCH' | 'DELETE';
|
method?: 'GET' | 'POST' | 'PATCH' | 'PUT' | 'DELETE';
|
||||||
query?: {key: string, value: string}[] | {[key: string]: string};
|
query?: {key: string, value: string}[] | {[key: string]: string};
|
||||||
url?: string;
|
url?: string;
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
|
Loading…
Reference in New Issue
Block a user