2020-05-06 10:09:15 +00:00
|
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
|
|
// Sanity-check the conversion and remove this comment.
|
2020-05-06 10:08:21 +00:00
|
|
|
/*
|
|
|
|
* decaffeinate suggestions:
|
|
|
|
* DS102: Remove unnecessary code created because of implicit returns
|
|
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
|
|
*/
|
2014-02-12 10:40:42 +00:00
|
|
|
|
2020-05-06 10:09:33 +00:00
|
|
|
const register = function (file) {
|
|
|
|
const type = require(file)
|
|
|
|
exports[type.name] = type
|
|
|
|
try {
|
|
|
|
return require(`${file}-api`)
|
|
|
|
} catch (error) {}
|
|
|
|
}
|
2014-02-12 10:40:42 +00:00
|
|
|
|
2020-05-06 10:08:21 +00:00
|
|
|
// Import all the built-in types.
|
2020-05-06 10:09:33 +00:00
|
|
|
register('./simple')
|
|
|
|
register('./count')
|
2014-02-12 10:40:42 +00:00
|
|
|
|
2020-05-06 10:09:33 +00:00
|
|
|
register('./text')
|
|
|
|
register('./text-composable')
|
|
|
|
register('./text-tp2')
|
2014-02-12 10:40:42 +00:00
|
|
|
|
2020-05-06 10:09:33 +00:00
|
|
|
register('./json')
|