Function: parseGroupId()
ts
function parseGroupId(id): GroupId;Defined in: group/group-id.ts:14
Parses a group id of the form uuid~count.
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Throws
TypeError on malformed ids.
See
https://uploadcare.com/docs/file-groups/
Example
ts
parseGroupId(`${uuid}~11`) // → { uuid, count: 11 }