MCPcopy Create free account
hub / github.com/JS-DevTools/ono / toJSON

Method toJSON

src/types.ts:144–144  ·  view source on GitHub ↗

* Returns a JSON representation of the error, including all built-in error properties, * as well as properties that were dynamically added.

()

Source from the content-addressed store, hash-verified

142 * as well as properties that were dynamically added.
143 */
144 toJSON(): ErrorPOJO & T;
145
146 /**
147 * Returns a representation of the error for Node's `util.inspect()` method.

Calls

no outgoing calls