Skip to content

Commit 5e140ab

Browse files
committed
more type safety
1 parent 935ff3c commit 5e140ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/storage/src/implementation/string.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { decodeBase64 } from '../platform/base64';
2222
* An enumeration of the possible string formats for upload.
2323
* @public
2424
*/
25-
export type StringFormat = string;
25+
export type StringFormat = typeof StringFormat[keyof typeof StringFormat];
2626
/**
2727
* An enumeration of the possible string formats for upload.
2828
* @public
@@ -60,7 +60,7 @@ export const StringFormat = {
6060
* be overridden in the metadata object).
6161
*/
6262
DATA_URL: 'data_url'
63-
};
63+
} as const;
6464

6565
export class StringData {
6666
contentType: string | null;

0 commit comments

Comments
 (0)