fix(validate): fix type errors

This commit is contained in:
mhartington
2018-04-26 10:18:44 -04:00
parent c917a3cd48
commit 3328314339
2 changed files with 1996 additions and 1996 deletions

View File

@ -41,7 +41,7 @@ export function pointerCoord(ev: any): {x: number, y: number} {
}
export type Side = 'start' | 'end';
export function entries(obj: {[s: string]: T}): [string, T][] {
export function entries<T>(obj: {[s: string]: T}): [string, T][] {
const ownProps = Object.keys( obj );
let i = ownProps.length;
const resArray = new Array(i);