Skip to content

Function: parseGroupId() ​

ts
function parseGroupId(id): GroupId;

Defined in: group/group-id.ts:14

Parses a group id of the form uuid~count.

Parameters ​

ParameterType
idstring

Returns ​

GroupId

Throws ​

TypeError on malformed ids.

See ​

https://uploadcare.com/docs/file-groups/

Example ​

ts
parseGroupId(`${uuid}~11`) // → { uuid, count: 11 }