interface Array { // https://github.com/Microsoft/TypeScript/issues/7657 filter(pred: (a: T) => a is U): U[]; }