Installation
npm install --save @types/hyper-aws4
Summary
This package contains type definitions for hyper-aws4 (https://github.com/Tim-Zhang/hyper-aws4#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hyper-aws4.
index.d.ts
export interface Credentials {
accessKey: string;
secretKey: string;
}
export interface Header {
[header: string]: string;
}
export type HttpMethods = "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
export interface Request {
url: string;
method?: HttpMethods | undefined;
body?: string | undefined;
headers?: Header | undefined;
credential?: Credentials | undefined;
}
export function sign(request: Request, credential?: Credentials): Header;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by BamButz.