npm.io
1.1.3 • Published 3 years ago

@types/hyper-aws4

Licence
MIT
Version
1.1.3
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.5K

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 0337 GMT
  • Dependencies: none

Credits

These definitions were written by BamButz.