10 lines
397 B
TypeScript
10 lines
397 B
TypeScript
import { Primitive } from "./types";
|
|
export declare class UnreachableCaseError extends Error {
|
|
constructor(value: never);
|
|
}
|
|
/**
|
|
* @deprecated since ts-essentials 3.x -- use `as const` assertions available from TS 3.4
|
|
* @see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions
|
|
*/
|
|
export declare function literal<T extends Primitive>(value: T): T;
|