MCPcopy Index your code
hub / github.com/fontsource/fontsource / assertNever

Function assertNever

packages/cli/src/utils.ts:71–73  ·  view source on GitHub ↗
(value: never)

Source from the content-addressed store, hash-verified

69// if the passed in value is not of type `never`. Useful for exhaustiveness checking.
70// The result of this function can be used in place of any value (as it will never return).
71export const assertNever = (value: never): never => {
72 throw new Error(`Unhandled union member: ${JSON.stringify(value)}`);
73};
74
75export {
76 findClosest,

Callers 1

getDownloadPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected