Skip to content

Latest commit

 

History

History
80 lines (55 loc) · 2.27 KB

yotils.api.md

File metadata and controls

80 lines (55 loc) · 2.27 KB

API Report File for "yotils"

Do not edit this file. It is a report generated by API Extractor.

// Warning: (ae-forgotten-export) The symbol "Primitive" needs to be exported by the entry point index.d.ts
//
// @beta
export function countItems<Item extends Primitive>(array: Item[]): Record<string, Item>;

// @public
export function getLength<Input>(input: Input): number;

// @public
export function hasDuplicates<Item extends keyof Primitive>(array: Item[]): boolean;

// @public
export function indexBy<Item extends {
    [Key in keyof Item]: string | number | symbol;
}, Key extends keyof Item>(array: Item[], key: Key): Record<Item[Key], Item>;

// @public
export function isArray<Input>(input: unknown): input is Array<Input>;

// @public
export function isArrayOfString(input: unknown): input is string[];

// @public
export function isDate(value: unknown): value is Date;

// @public
export function isDateValid(input: string): input is string;

// @public
export function isDefined<T>(value: T): value is NonNullable<T>;

// @public
export function isEmpty<T>(value: T): value is T;

// @alpha
export function isEqual<T>(target: T, other: T): boolean;

// @beta
export function isEqualDate(target: Required<Date>, other: Required<Date>): boolean;

// @public
export function isMap<T>(value: T): value is T;

// @public
export function isNull(value: unknown): value is null;

// @public
export function isNumber(value: unknown): value is number;

// @public
export function isObject<T>(value: T): value is T & object;

// @public
export function isObjectLike<T>(value: T): value is T & object;

// @public
export function isSet<T>(value: T): value is T;

// @public
export function isString(input: unknown): input is string;

// Warning: (ae-forgotten-export) The symbol "AnyObject" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "PredicateFunction" needs to be exported by the entry point index.d.ts
//
// @alpha
export function omitBy(object: AnyObject, fun: PredicateFunction): AnyObject;

// @beta
export function toChunks(input: string, chunkSize: number): string[];

// @public
export function wrapInArray<Input>(input: Input): Input[];