shelving
Version:
Toolkit for using data in JavaScript.
10 lines (9 loc) • 691 B
TypeScript
import type { Data } from "../util/data.js";
import type { Identifier, Item } from "../util/item.js";
import type { NotString } from "../util/string.js";
/** Expect that an object matches `PromiseLike` */
export declare const EXPECT_PROMISELIKE: any;
/** Expect `Item` objects with an `.id` prop in any order. */
export declare function expectUnorderedItems<I extends Identifier, T extends Data>(items: Iterable<Item<I, T>>, keys: Iterable<string> & NotString): void;
/** Expect `Item` objects with an `.id` prop in a specified order. */
export declare function expectOrderedItems<I extends Identifier, T extends Data>(items: Iterable<Item<I, T>>, keys: Iterable<string> & NotString): void;