2020-05-06 06:09:15 -04:00
|
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
|
|
// Sanity-check the conversion and remove this comment.
|
2020-05-06 06:08:21 -04: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 05:40:42 -05:00
|
|
|
|
2020-05-06 06:09:33 -04:00
|
|
|
const register = function (file) {
|
|
|
|
const type = require(file)
|
|
|
|
exports[type.name] = type
|
|
|
|
try {
|
|
|
|
return require(`${file}-api`)
|
|
|
|
} catch (error) {}
|
|
|
|
}
|
2014-02-12 05:40:42 -05:00
|
|
|
|
2020-05-06 06:08:21 -04:00
|
|
|
// Import all the built-in types.
|
2020-05-06 06:09:33 -04:00
|
|
|
register('./simple')
|
|
|
|
register('./count')
|
2014-02-12 05:40:42 -05:00
|
|
|
|
2020-05-06 06:09:33 -04:00
|
|
|
register('./text')
|
|
|
|
register('./text-composable')
|
|
|
|
register('./text-tp2')
|
2014-02-12 05:40:42 -05:00
|
|
|
|
2020-05-06 06:09:33 -04:00
|
|
|
register('./json')
|