The cldr-data
package is defined something like:
function cldrData(path) {
// ...
}
cldrData.all = function() {
// ...
}
cldrData.entireMainFor = function(locale/*, ...*/) {
// ...
}
cldrData.entireSupplemental = function() {
// ...
}
module.exports = cldrData;
How should I write a type declaration file for such a package?