overleaf/services/document-updater/app/js/sharejs/index.js

26 lines
633 B
JavaScript
Raw Normal View History

// TODO: This file was created by bulk-decaffeinate.
// Sanity-check the conversion and remove this comment.
/*
* 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
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
// Import all the built-in types.
register('./simple')
register('./count')
2014-02-12 10:40:42 +00:00
register('./text')
register('./text-composable')
register('./text-tp2')
2014-02-12 10:40:42 +00:00
register('./json')