Skip to content

Commit 8efdb61

Browse files
author
Aliaksei Belski
committed
Change exports
1 parent 93cf180 commit 8efdb61

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

client/create_headers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ const ALGORITHM: string = "AWS4-HMAC-SHA256";
1010
const CONTENT_TYPE: string = "application/x-amz-json-1.0";
1111

1212
/** Required configuration for assembling headers. */
13-
export interface HeadersConfig extends ClientConfig {
13+
interface HeadersConfig extends ClientConfig {
1414
host: string; // dynamodb.us-west-2.amazonaws.com
1515
method: string; // POST
1616
cache: Doc; // internal cache for expensive-2-make signing key (& credScope)
1717
date?: Date; // allows reusing a date for 5min (max signature timestamp diff)
1818
}
1919

20+
export type { HeadersConfig };
21+
2022
/** Assembles a header object for a DynamoDB request. */
2123
export async function createHeaders(
2224
op: string,

util.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ const ANY_BUT_DIGITS: RegExp = /[^\d]/g;
22
const ANY_BUT_DIGITS_T: RegExp = /[^\dT]/g;
33

44
/** Generic document. */
5-
export interface Doc {
5+
interface Doc {
66
[key: string]: any;
77
}
88

9+
export type { Doc };
10+
911
/** noop. */
1012
export function noop(..._: any[]): void {}
1113

0 commit comments

Comments
 (0)