Permalink
Browse files

fix(MetaData): Use target when proxy

  • Loading branch information...
RWOverdijk committed Oct 7, 2016
1 parent de27874 commit a0cdeaba2da55b2aa5fc6698f3c35a5fe221e777
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/MetaData.ts
@@ -1,5 +1,5 @@
import {Homefront} from 'homefront';
import {ProxyInterface} from './EntityInterface';
import {ProxyInterface, EntityInterface, EntityCtor} from './EntityInterface';
export class MetaData {
/**
@@ -57,7 +57,7 @@ export class MetaData {
*
* @returns {Function}
*/
public static getConstructor(target: Function | Object): Function {
public static getConstructor(target: ProxyInterface): Function {
return (typeof target === 'function' ? target : target.constructor) as Function;
}
}

0 comments on commit a0cdeab

Please sign in to comment.