UNPKG

889 BTypeScriptView Raw
1export declare namespace CosmosDbKeyEscape {
2 /**
3 * Converts the key into a DocumentID that can be used safely with CosmosDB.
4 * The following characters are restricted and cannot be used in the Id property: '/', '\', '?', '#'
5 * More information at https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.documents.resource.id?view=azure-dotnet#remarks
6 *
7 * @param key The provided key to be escaped.
8 * @param keySuffix The string to add a the end of all RowKeys.
9 * @param compatibilityMode True if keys should be truncated in order to support previous CosmosDb
10 * max key length of 255. This behavior can be overridden by setting cosmosDbPartitionedStorageOptions.compatibilityMode to false.
11 */
12 function escapeKey(key: string, keySuffix?: string, compatibilityMode?: boolean): string;
13}
14//# sourceMappingURL=cosmosDbKeyEscape.d.ts.map
\No newline at end of file