ossplz/alsatian-fluent-assertions

View on GitHub
src/types/all-property-asserts-dict.ts

Summary

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

/** Dictionary type for asserting over all (strictly) values within an object. */
export type AllPropertyAssertsDict<T> = {
  [key in keyof T]:
    | T[key]
    | PropertyAssertsLambda<T[key]>
    | RegExp
    | AllPropertyAssertsDict<T[key]>
};