UNPKG

shelving

Version:

Toolkit for using data in JavaScript.

10 lines (9 loc) 629 B
import type { Data } from "../util/data.js"; import type { 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<T extends Data>(items: Iterable<Item<T>>, keys: Iterable<string> & NotString): void; /** Expect `Item` objects with an `.id` prop in a specified order. */ export declare function expectOrderedItems<T extends Data>(items: Iterable<Item<T>>, keys: Iterable<string> & NotString): void;