UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

80 lines (37 loc) 1.24 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [\_Production](./rc-js-util._production.md) ## \_Production class Utilities for production builds. **Signature:** ```typescript export declare class _Production ``` ## Methods <table><thead><tr><th> Method </th><th> Modifiers </th><th> Description </th></tr></thead> <tbody><tr><td> [assertValueIsNever(\_value)](./rc-js-util._production.assertvalueisnever.md) </td><td> `static` </td><td> A function that will error if ever called. The parameter is asserted to be never, useful with switch statements, union types etc. </td></tr> <tr><td> [createError(message)](./rc-js-util._production.createerror.md) </td><td> `static` </td><td> Creates an `Error` with the given message. If `_BUILD.DEBUG` is true and `_BUILD.DISABLE_BREAKPOINT_FLAG` is false or unset then a breakpoint will be hit first. Should not be used for "expected" errors (bad input etc). </td></tr> <tr><td> [error(message)](./rc-js-util._production.error.md) </td><td> `static` </td><td> </td></tr> </tbody></table>