instanceOf.d.ts 472 B

12345678910111213141516
  1. /**
  2. * A replacement for instanceof which includes an error warning when multi-realm
  3. * constructors are detected.
  4. * See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
  5. * See: https://webpack.js.org/guides/production/
  6. */
  7. export declare const instanceOf: (
  8. value: unknown,
  9. constructor: Constructor,
  10. ) => boolean;
  11. interface Constructor extends Function {
  12. prototype: {
  13. [Symbol.toStringTag]: string;
  14. };
  15. }
  16. export {};