isomorphic.browser.d.ts 574 B

123456789101112131415
  1. /**
  2. * Ono supports custom formatters for error messages. In Node.js, it defaults
  3. * to the `util.format()` function. In browsers, it defaults to `Array.join()`.
  4. *
  5. * The Node.js functionality can be used in a web browser via a polyfill,
  6. * such as "format-util".
  7. *
  8. * @see https://github.com/tmpfs/format-util
  9. */
  10. export declare const format = false;
  11. /**
  12. * The `util.inspect()` functionality only applies to Node.js.
  13. * We return the constant `false` here so that the Node-specific code gets removed by tree-shaking.
  14. */
  15. export declare const addInspectMethod = false;