@types/hyper-aws4
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/hyper-aws4

Weekly Downloads

3

Version

1.1.3

License

MIT

Unpacked Size

3.49 kB

Total Files

5

Last publish

Collaborators

  • types