From cb4a0e30c3dda0a7911c96b0a57e9db0c64a5066 Mon Sep 17 00:00:00 2001 From: Pedro Pedruzzi Date: Tue, 13 Jun 2023 17:49:13 -0300 Subject: [PATCH] fix(util-dynamodb): reorder marshall function overload signatures (#4829) --- packages/util-dynamodb/src/marshall.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/util-dynamodb/src/marshall.ts b/packages/util-dynamodb/src/marshall.ts index 8139f583a07f..80d6b905412c 100644 --- a/packages/util-dynamodb/src/marshall.ts +++ b/packages/util-dynamodb/src/marshall.ts @@ -31,16 +31,16 @@ export interface marshallOptions { export function marshall(data: Set, options?: marshallOptions): AttributeValue.SSMember; export function marshall(data: Set, options?: marshallOptions): AttributeValue.NSMember; export function marshall(data: Set, options?: marshallOptions): AttributeValue.BSMember; +export function marshall(data: string, options?: marshallOptions): AttributeValue.SMember; +export function marshall(data: number, options?: marshallOptions): AttributeValue.NMember; +export function marshall(data: null, options?: marshallOptions): AttributeValue.NULLMember; +export function marshall(data: boolean, options?: marshallOptions): AttributeValue.BOOLMember; +export function marshall(data: L, options?: marshallOptions): AttributeValue[]; export function marshall( data: M, options?: marshallOptions ): Record; -export function marshall(data: L, options?: marshallOptions): AttributeValue[]; -export function marshall(data: string, options?: marshallOptions): AttributeValue.SMember; -export function marshall(data: number, options?: marshallOptions): AttributeValue.NMember; export function marshall(data: NativeAttributeBinary, options?: marshallOptions): AttributeValue.BMember; -export function marshall(data: null, options?: marshallOptions): AttributeValue.NULLMember; -export function marshall(data: boolean, options?: marshallOptions): AttributeValue.BOOLMember; export function marshall(data: unknown, options?: marshallOptions): AttributeValue.$UnknownMember; export function marshall(data: unknown, options?: marshallOptions) { const attributeValue: AttributeValue = convertToAttr(data, options);