Fix a few more errors

This commit is contained in:
Matt Bierner
2017-11-06 13:31:06 -08:00
parent b743e245ad
commit ab1d686a41
7 changed files with 21 additions and 18 deletions

View File

@@ -84,9 +84,9 @@ export function once(fn: (...args: any[]) => any): (...args: any[]) => any {
};
}
export function assign<T>(destination: T, ...sources: (keyof T)[]): T {
export function assign<T>(destination: T, ...sources: any[]): T {
for (const source of sources) {
Object.keys(source).forEach(key => destination[key] = source[key]);
Object.keys(source).forEach(key => (destination as any)[key] = source[key]);
}
return destination;