Musique/node_modules/ow/dist/utils/has-items.d.ts

17 lines
492 B
TypeScript

/**
@hidden
*/
export interface CollectionLike<T> {
has: (item: T) => boolean;
}
declare const _default: <T>(source: CollectionLike<T>, items: readonly T[], maxValues?: number) => true | T[];
/**
Retrieve the missing values in a collection based on an array of items.
@hidden
@param source - Source collection to search through.
@param items - Items to search for.
@param maxValues - Maximum number of values after the search process is stopped. Default: 5.
*/
export default _default;