@planet-a/affinity-node
Version:
API wrapper for the affinity.co API
21 lines (20 loc) • 587 B
JavaScript
// Copyright 2018-2025 the Deno authors. MIT license.
// This module is browser compatible.
import { AssertionError } from "./assertion_error.js";
/**
* Use this to stub out methods that will throw when invoked.
*
* @example Usage
* ```ts ignore
* import { unimplemented } from "@std/assert";
*
* unimplemented(); // Throws
* ```
*
* @param msg Optional message to include in the error.
* @returns Never returns, always throws.
*/
export function unimplemented(msg) {
const msgSuffix = msg ? `: ${msg}` : ".";
throw new AssertionError(`Unimplemented${msgSuffix}`);
}