@rxjs-stuff/marbles
Version:
A set of plugins that provide a natural feeling integration with Mocha and Chai for RxJS "marbles" testing.
8 lines (7 loc) • 698 B
TypeScript
export declare type MarbleKeyLower = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z';
export declare type MarbleKeyUpper = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
export declare type MarbleKey = MarbleKeyLower | MarbleKeyUpper;
export declare type MarbleValues<TValue, TKeys extends MarbleKey = MarbleKey> = {
[TKey in TKeys]?: TValue;
};
export declare function marbleValues<TValue, TKeys extends MarbleKey>(map: MarbleValues<TValue, TKeys>): MarbleValues<TValue, TKeys>;