Skip to content

Commit ebc1e39

Browse files
authored
Merge pull request #1495 from illunix/feat/ms/create-empty-guid
feat(abstractions): create empty guid
2 parents e3ca25f + a16c10e commit ebc1e39

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/abstractions/src/utils/guidUtils.ts

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ export const parseGuidString = (source?: string) => {
2626
*/
2727
export const createGuid = () => [gen(2), gen(1), gen(1), gen(1), gen(3)].join("-");
2828

29+
/**
30+
* Generates a empty GUID.
31+
* @returns a empty GUID.
32+
*/
33+
export const createEmptyGuid = () => "00000000-0000-0000-0000-000000000000";
34+
2935
/**
3036
* Generates a part of a GUID.
3137
* @param count the number of 2 byte chunks to generate.

0 commit comments

Comments
 (0)