target.ts 397 B

123456789101112131415161718
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. declare let define: any;
  4. if (typeof define !== 'function') {
  5. // @ts-expect-error
  6. const define = require('amdefine')(module); // eslint-disable-line @typescript-eslint/no-unused-vars
  7. }
  8. module.exports = {
  9. test: () => {
  10. return 1;
  11. },
  12. test2: () => {
  13. throw Error('Nope');
  14. }
  15. };