ossplz/alsatian-fluent-assertions

View on GitHub
src/types/subset-property-dict.ts

Summary

Maintainability
A
1 hr
Test Coverage
import { PropertyLambda } from "./property-lambda";

/** Dictionary type for asserting over some values within an object. */
export type SubsetPropertyDict<T> = {
  [key in keyof T]?:
    | T[key]
    | PropertyLambda<T[key]>
    | RegExp
    | SubsetPropertyDict<T[key]>
};