UNPKG

opaqueid

Version:

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

20 lines (19 loc) 450 B
/** * The invalid ID type error. */ export default class InvalidIDTypeError extends Error { /** * The expected ID type. */ expectedType: string; /** * The actual ID type. */ actualType: string; /** * Constructs a new InvalidIDTypeError * @param expectedType The expected ID type. * @param actualType The actual cursor type. */ constructor(expectedType: string, actualType: string); }