index.js 633 B

12345678910111213141516171819202122232425
  1. // TODO: This file was created by bulk-decaffeinate.
  2. // Sanity-check the conversion and remove this comment.
  3. /*
  4. * decaffeinate suggestions:
  5. * DS102: Remove unnecessary code created because of implicit returns
  6. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  7. */
  8. const register = function (file) {
  9. const type = require(file)
  10. exports[type.name] = type
  11. try {
  12. return require(`${file}-api`)
  13. } catch (error) {}
  14. }
  15. // Import all the built-in types.
  16. register('./simple')
  17. register('./count')
  18. register('./text')
  19. register('./text-composable')
  20. register('./text-tp2')
  21. register('./json')