1.1.3 • Published 6 months ago
@types/hyper-aws4 v1.1.3
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
// Type definitions for hyper-aws4 1.1
// Project: https://github.com/Tim-Zhang/hyper-aws4#readme
// Definitions by: BamButz <https://github.com/bambutz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Thu, 08 Jul 2021 14:22:59 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by BamButz.