module merge util module naming changed to use "-"

This commit is contained in:
Vladimir Enchev
2014-05-15 10:00:17 +03:00
parent 4b14fd1a19
commit 012a4c40be
7 changed files with 56 additions and 3 deletions

7
utils/module-merge.ts Normal file
View File

@@ -0,0 +1,7 @@
// This method iterates all the keys in the source exports object and copies them to the destination exports one.
// Note: the method will not check for naming collisions and will override any already existing entries in the destination exports.
export var merge = function (sourceExports: any, destExports: any) {
for (var key in sourceExports) {
destExports[key] = sourceExports[key];
}
}