newPublisherIdV2()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Generates an id such as widget_7f3a91c4.
export declare function newPublisherIdV2(prefix: string): string;
Parameters
Parameter | Type | Description |
|---|---|---|
prefix | string |
Returns
string
Remarks
For a valid id, the prefix uses only [A-Za-z0-9_.-], has at most 55 characters and does not start with default..