-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(document-client): expose translateConfig options to DocumentClie…
…ntV3
- Loading branch information
1 parent
63e4283
commit 03f4343
Showing
3 changed files
with
78 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/document-client/src/constants/translate-config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const DEFAULT_TRANSLATE_CONFIG_V3 = { | ||
marshallOptions: { | ||
// Whether to automatically convert empty strings, blobs, and sets to `null`. | ||
convertEmptyValues: false, // false, by default. | ||
// Whether to remove undefined values while marshalling. | ||
removeUndefinedValues: false, // false, by default. | ||
// Whether to convert typeof object to map attribute. | ||
convertClassInstanceToMap: false, // false, by default. | ||
}, | ||
unmarshallOptions: { | ||
// Whether to return numbers as a string instead of converting them to native JavaScript numbers. | ||
wrapNumbers: false, // false, by default. | ||
}, | ||
}; |