UNPKG

opaqueid

Version:

A basic opaque ID generator with support for types and metadata.

15 lines (14 loc) 261 B
/** * The invalid ID error. */ export default class InvalidIDError extends Error { /** * The ID type. */ type?: string; /** * Constructs a new InvalidIDError * @param type The ID type. */ constructor(type?: string); }