diff --git a/dist/index.esm.js b/dist/index.esm.js index 3c18d31..103e53f 100644 --- a/dist/index.esm.js +++ b/dist/index.esm.js @@ -1 +1 @@ -function countItems(t){return t.reduce((t,e)=>(t[e]=t[e]?++t[e]:1,t),{})}function hasDuplicates(t){return new Set(t).sizeisString(t))}function isDate(t){return t instanceof Date}function isDateString(t){return/(^(?:(?:(?:31(?:(?:([-.\/])(?:0?[13578]|1[02])\2)|(?:([-.\/ ])(?:Jan|JAN|Mar|MAR|May|MAY|Jul|JUL|Aug|AUG|Oct|OCT|Dec|DEC)\3)))|(?:(?:29|30)(?:(?:([-.\/])(?:0?[13-9]|1[0-2])\4)|(?:([-.\/ ])(?:Jan|JAN|Mar|MAR|Apr|APR|May|MAY|Jun|JUN|Jul|JUL|Aug|AUG|Sep|SEP|Oct|OCT|Nov|NOV|Dec|DEC)\5))))(?:(?:1[6-9]|[2-9]\d)?\d{2}))$|^(?:29(?:(?:([-.\/])(?:0?2)\6)|(?:([-.\/ ])(?:Feb|FEB)\7))(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))$|^(?:(?:0?[1-9]|1\d|2[0-8])(?:(?:([-.\/])(?:(?:0?[1-9]|(?:1[0-2])))\8)|(?:([-.\/ ])(?:Jan|JAN|Feb|FEB|Mar|MAR|May|MAY|Jul|JUL|Aug|AUG|Oct|OCT|Dec|DEC)\9))(?:(?:1[6-9]|[2-9]\d)?\d{2}))$)/gm.test(t)}function isDefined(t){return null!=t}function isObject(t){let e=typeof t;return null!==t&&("object"===e||"function"===e)}function getLength(t){return isString(t)||isArray(t)?t.length:isObject(t)?Object.keys(t).length:0}function isEmpty(t){return null==t||0===getLength(t)}function isEqualDate(t,e){return t.getTime()===e.getTime()}function isObjectLike(t){return"object"==typeof t&&null!==t}function isEqual(t,e){return t===e||(isDate(t)&&isDate(e)?isEqualDate(t,e):!(null!==t&&null!==e&&(isObjectLike(t)||isObjectLike(e)))&&t!=t&&e!=e)}function getTag(t){return Object.prototype.toString.call(t)}function isMap(t){return isObjectLike(t)&&"[object Map]"===getTag(t)}function isNumber(t){return Number.isFinite(t)}function isSet(t){return isObjectLike(t)&&"[object Set]"===getTag(t)}function isNull(t){return null===t}function omitBy(t,e){return Object.keys(t).filter(n=>!e(n,t[n])).reduce((e,n)=>(e[n]=t[n],e),{})}function toChunks(t,e){let n=Math.ceil(t.length/e),i=RegExp(`.{1,${n}}`,"g");return t.match(i)??[]}function indexBy(t,e){return t.reduce((t,n)=>({...t,[n[e]]:n}),{})}function wrapInArray(t){return[t]}export{countItems,getLength,hasDuplicates,indexBy,isArray,isArrayOfString,isDate,isDateString as isDateValid,isDefined,isEmpty,isEqual,isEqualDate,isMap,isNull,isNumber,isObject,isObjectLike,isSet,isString,omitBy,toChunks,wrapInArray}; +function countItems(t){return t.reduce((t,e)=>(t[e]=t[e]?++t[e]:1,t),{})}function hasDuplicates(t){return new Set(t).sizeisString(t))}function isDate(t){return t instanceof Date}function isStringDate(t){return/(^(?:(?:(?:31(?:(?:([-.\/])(?:0?[13578]|1[02])\2)|(?:([-.\/ ])(?:Jan|JAN|Mar|MAR|May|MAY|Jul|JUL|Aug|AUG|Oct|OCT|Dec|DEC)\3)))|(?:(?:29|30)(?:(?:([-.\/])(?:0?[13-9]|1[0-2])\4)|(?:([-.\/ ])(?:Jan|JAN|Mar|MAR|Apr|APR|May|MAY|Jun|JUN|Jul|JUL|Aug|AUG|Sep|SEP|Oct|OCT|Nov|NOV|Dec|DEC)\5))))(?:(?:1[6-9]|[2-9]\d)?\d{2}))$|^(?:29(?:(?:([-.\/])(?:0?2)\6)|(?:([-.\/ ])(?:Feb|FEB)\7))(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))$|^(?:(?:0?[1-9]|1\d|2[0-8])(?:(?:([-.\/])(?:(?:0?[1-9]|(?:1[0-2])))\8)|(?:([-.\/ ])(?:Jan|JAN|Feb|FEB|Mar|MAR|May|MAY|Jul|JUL|Aug|AUG|Oct|OCT|Dec|DEC)\9))(?:(?:1[6-9]|[2-9]\d)?\d{2}))$)/gm.test(t)}function isDefined(t){return null!=t}function isObject(t){let e=typeof t;return null!==t&&("object"===e||"function"===e)}function getLength(t){return isString(t)||isArray(t)?t.length:isObject(t)?Object.keys(t).length:0}function isEmpty(t){return null==t||0===getLength(t)}function isEqualDate(t,e){return t.getTime()===e.getTime()}function isObjectLike(t){return"object"==typeof t&&null!==t}function isEqual(t,e){return t===e||(isDate(t)&&isDate(e)?isEqualDate(t,e):!(null!==t&&null!==e&&(isObjectLike(t)||isObjectLike(e)))&&t!=t&&e!=e)}function getTag(t){return Object.prototype.toString.call(t)}function isMap(t){return isObjectLike(t)&&"[object Map]"===getTag(t)}function isNumber(t){return Number.isFinite(t)}function isSet(t){return isObjectLike(t)&&"[object Set]"===getTag(t)}function isNull(t){return null===t}function omitBy(t,e){return Object.keys(t).filter(n=>!e(n,t[n])).reduce((e,n)=>(e[n]=t[n],e),{})}function toChunks(t,e){let n=Math.ceil(t.length/e),i=RegExp(`.{1,${n}}`,"g");return t.match(i)??[]}function indexBy(t,e){return t.reduce((t,n)=>({...t,[n[e]]:n}),{})}function wrapInArray(t){return[t]}export{countItems,getLength,hasDuplicates,indexBy,isArray,isArrayOfString,isDate,isStringDate as isDateValid,isDefined,isEmpty,isEqual,isEqualDate,isMap,isNull,isNumber,isObject,isObjectLike,isSet,isString,omitBy,toChunks,wrapInArray}; diff --git a/dist/index.js b/dist/index.js index c0d0fbc..8b28027 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -"use strict";function countItems(t){return t.reduce((t,e)=>(t[e]=t[e]?++t[e]:1,t),{})}function hasDuplicates(t){return new Set(t).sizeisString(t))}function isDate(t){return t instanceof Date}function isDateString(t){return/(^(?:(?:(?:31(?:(?:([-.\/])(?:0?[13578]|1[02])\2)|(?:([-.\/ ])(?:Jan|JAN|Mar|MAR|May|MAY|Jul|JUL|Aug|AUG|Oct|OCT|Dec|DEC)\3)))|(?:(?:29|30)(?:(?:([-.\/])(?:0?[13-9]|1[0-2])\4)|(?:([-.\/ ])(?:Jan|JAN|Mar|MAR|Apr|APR|May|MAY|Jun|JUN|Jul|JUL|Aug|AUG|Sep|SEP|Oct|OCT|Nov|NOV|Dec|DEC)\5))))(?:(?:1[6-9]|[2-9]\d)?\d{2}))$|^(?:29(?:(?:([-.\/])(?:0?2)\6)|(?:([-.\/ ])(?:Feb|FEB)\7))(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))$|^(?:(?:0?[1-9]|1\d|2[0-8])(?:(?:([-.\/])(?:(?:0?[1-9]|(?:1[0-2])))\8)|(?:([-.\/ ])(?:Jan|JAN|Feb|FEB|Mar|MAR|May|MAY|Jul|JUL|Aug|AUG|Oct|OCT|Dec|DEC)\9))(?:(?:1[6-9]|[2-9]\d)?\d{2}))$)/gm.test(t)}function isDefined(t){return null!=t}function isObject(t){let e=typeof t;return null!==t&&("object"===e||"function"===e)}function getLength(t){return isString(t)||isArray(t)?t.length:isObject(t)?Object.keys(t).length:0}function isEmpty(t){return null==t||0===getLength(t)}function isEqualDate(t,e){return t.getTime()===e.getTime()}function isObjectLike(t){return"object"==typeof t&&null!==t}function isEqual(t,e){return t===e||(isDate(t)&&isDate(e)?isEqualDate(t,e):!(null!==t&&null!==e&&(isObjectLike(t)||isObjectLike(e)))&&t!=t&&e!=e)}function getTag(t){return Object.prototype.toString.call(t)}function isMap(t){return isObjectLike(t)&&"[object Map]"===getTag(t)}function isNumber(t){return Number.isFinite(t)}function isSet(t){return isObjectLike(t)&&"[object Set]"===getTag(t)}function isNull(t){return null===t}function omitBy(t,e){return Object.keys(t).filter(r=>!e(r,t[r])).reduce((e,r)=>(e[r]=t[r],e),{})}function toChunks(t,e){let r=Math.ceil(t.length/e),i=RegExp(`.{1,${r}}`,"g");return t.match(i)??[]}function indexBy(t,e){return t.reduce((t,r)=>({...t,[r[e]]:r}),{})}function wrapInArray(t){return[t]}exports.countItems=countItems,exports.getLength=getLength,exports.hasDuplicates=hasDuplicates,exports.indexBy=indexBy,exports.isArray=isArray,exports.isArrayOfString=isArrayOfString,exports.isDate=isDate,exports.isDateValid=isDateString,exports.isDefined=isDefined,exports.isEmpty=isEmpty,exports.isEqual=isEqual,exports.isEqualDate=isEqualDate,exports.isMap=isMap,exports.isNull=isNull,exports.isNumber=isNumber,exports.isObject=isObject,exports.isObjectLike=isObjectLike,exports.isSet=isSet,exports.isString=isString,exports.omitBy=omitBy,exports.toChunks=toChunks,exports.wrapInArray=wrapInArray; +"use strict";function countItems(t){return t.reduce((t,e)=>(t[e]=t[e]?++t[e]:1,t),{})}function hasDuplicates(t){return new Set(t).sizeisString(t))}function isDate(t){return t instanceof Date}function isStringDate(t){return/(^(?:(?:(?:31(?:(?:([-.\/])(?:0?[13578]|1[02])\2)|(?:([-.\/ ])(?:Jan|JAN|Mar|MAR|May|MAY|Jul|JUL|Aug|AUG|Oct|OCT|Dec|DEC)\3)))|(?:(?:29|30)(?:(?:([-.\/])(?:0?[13-9]|1[0-2])\4)|(?:([-.\/ ])(?:Jan|JAN|Mar|MAR|Apr|APR|May|MAY|Jun|JUN|Jul|JUL|Aug|AUG|Sep|SEP|Oct|OCT|Nov|NOV|Dec|DEC)\5))))(?:(?:1[6-9]|[2-9]\d)?\d{2}))$|^(?:29(?:(?:([-.\/])(?:0?2)\6)|(?:([-.\/ ])(?:Feb|FEB)\7))(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))$|^(?:(?:0?[1-9]|1\d|2[0-8])(?:(?:([-.\/])(?:(?:0?[1-9]|(?:1[0-2])))\8)|(?:([-.\/ ])(?:Jan|JAN|Feb|FEB|Mar|MAR|May|MAY|Jul|JUL|Aug|AUG|Oct|OCT|Dec|DEC)\9))(?:(?:1[6-9]|[2-9]\d)?\d{2}))$)/gm.test(t)}function isDefined(t){return null!=t}function isObject(t){let e=typeof t;return null!==t&&("object"===e||"function"===e)}function getLength(t){return isString(t)||isArray(t)?t.length:isObject(t)?Object.keys(t).length:0}function isEmpty(t){return null==t||0===getLength(t)}function isEqualDate(t,e){return t.getTime()===e.getTime()}function isObjectLike(t){return"object"==typeof t&&null!==t}function isEqual(t,e){return t===e||(isDate(t)&&isDate(e)?isEqualDate(t,e):!(null!==t&&null!==e&&(isObjectLike(t)||isObjectLike(e)))&&t!=t&&e!=e)}function getTag(t){return Object.prototype.toString.call(t)}function isMap(t){return isObjectLike(t)&&"[object Map]"===getTag(t)}function isNumber(t){return Number.isFinite(t)}function isSet(t){return isObjectLike(t)&&"[object Set]"===getTag(t)}function isNull(t){return null===t}function omitBy(t,e){return Object.keys(t).filter(r=>!e(r,t[r])).reduce((e,r)=>(e[r]=t[r],e),{})}function toChunks(t,e){let r=Math.ceil(t.length/e),i=RegExp(`.{1,${r}}`,"g");return t.match(i)??[]}function indexBy(t,e){return t.reduce((t,r)=>({...t,[r[e]]:r}),{})}function wrapInArray(t){return[t]}exports.countItems=countItems,exports.getLength=getLength,exports.hasDuplicates=hasDuplicates,exports.indexBy=indexBy,exports.isArray=isArray,exports.isArrayOfString=isArrayOfString,exports.isDate=isDate,exports.isDateValid=isStringDate,exports.isDefined=isDefined,exports.isEmpty=isEmpty,exports.isEqual=isEqual,exports.isEqualDate=isEqualDate,exports.isMap=isMap,exports.isNull=isNull,exports.isNumber=isNumber,exports.isObject=isObject,exports.isObjectLike=isObjectLike,exports.isSet=isSet,exports.isString=isString,exports.omitBy=omitBy,exports.toChunks=toChunks,exports.wrapInArray=wrapInArray; diff --git a/docs/yotils.countitems.md b/docs/yotils.countitems.md index d14ef1d..8f7441e 100644 --- a/docs/yotils.countitems.md +++ b/docs/yotils.countitems.md @@ -12,18 +12,18 @@ Counts of repeated items in flattened arrays. Signature: ```typescript -export declare function countItems(array: T[]): Record; +export declare function countItems(array: Item[]): Record; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| array | T\[\] | array of items. | +| array | Item\[\] | array of items. | Returns: -Record<string, T> +Record<string, Item> - key value list diff --git a/docs/yotils.getlength.md b/docs/yotils.getlength.md index 763d848..5766501 100644 --- a/docs/yotils.getlength.md +++ b/docs/yotils.getlength.md @@ -9,14 +9,14 @@ Gets length of string \| array \| object Signature: ```typescript -export declare function getLength(value: T): number; +export declare function getLength(input: Input): number; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| value | T | string \| array \| object | +| input | Input | string \| array \| object | Returns: diff --git a/docs/yotils.hasduplicates.md b/docs/yotils.hasduplicates.md index 149ac05..842a4c1 100644 --- a/docs/yotils.hasduplicates.md +++ b/docs/yotils.hasduplicates.md @@ -9,14 +9,14 @@ Determines whether an array has duplicates. Signature: ```typescript -export declare function hasDuplicates(array: T[]): boolean; +export declare function hasDuplicates(array: Item[]): boolean; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| array | T\[\] | input | +| array | Item\[\] | input | Returns: diff --git a/docs/yotils.indexby.md b/docs/yotils.indexby.md index d18fd6c..226f186 100644 --- a/docs/yotils.indexby.md +++ b/docs/yotils.indexby.md @@ -9,21 +9,21 @@ Returns the spilted lists grouped by index. They key should be unique and for un Signature: ```typescript -export declare function indexBy(array: T[], key: K): Record; +export declare function indexBy(array: Item[], key: Key): Record; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| array | T\[\] | of objects. | -| key | K | unique key | +| array | Item\[\] | of objects. | +| key | Key | unique key | Returns: -Record<T\[K\], T> +Record<Item\[Key\], Item> grouped by index, key value list. diff --git a/docs/yotils.isarray.md b/docs/yotils.isarray.md index 262b7be..3e8eac7 100644 --- a/docs/yotils.isarray.md +++ b/docs/yotils.isarray.md @@ -9,18 +9,18 @@ Determines whether the input is an array or not. Signature: ```typescript -export declare function isArray(value: unknown): value is Array; +export declare function isArray(input: unknown): input is Array; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| value | unknown | Generic input. | +| input | unknown | Generic input. | Returns: -value is Array<T> +input is Array<Input> true if the input is an array or false otherwise. diff --git a/docs/yotils.isarrayofstring.md b/docs/yotils.isarrayofstring.md index dc69885..e11ce56 100644 --- a/docs/yotils.isarrayofstring.md +++ b/docs/yotils.isarrayofstring.md @@ -9,18 +9,18 @@ Determines whether the input is array of string or not. Signature: ```typescript -export declare function isArrayOfString(value: unknown): value is string[]; +export declare function isArrayOfString(input: unknown): input is string[]; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| value | unknown | input | +| input | unknown | input | Returns: -value is string\[\] +input is string\[\] true if the input is array, false otherwise. diff --git a/docs/yotils.isdatevalid.md b/docs/yotils.isdatevalid.md index ec7ef9d..9943d46 100644 --- a/docs/yotils.isdatevalid.md +++ b/docs/yotils.isdatevalid.md @@ -9,18 +9,18 @@ Determines whether the input string is valid date or not. Signature: ```typescript -export declare function isDateString(value: string): value is string; +export declare function isStringDate(input: string): input is string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| value | string | input string. | +| input | string | input string. | Returns: -value is string +input is string true if the input string is valid date, false otherwise. @@ -32,7 +32,7 @@ While there are some regular expressions that allow date validations, it is bett ```ts -isDateString('01/01/2000') // true -isDateString('31/09/2000') // false +isStringDate('01/01/2000') // true +isStringDate('31/09/2000') // false ``` diff --git a/docs/yotils.isstring.md b/docs/yotils.isstring.md index b08b615..790bbe0 100644 --- a/docs/yotils.isstring.md +++ b/docs/yotils.isstring.md @@ -9,18 +9,18 @@ Determines whether the input is string or not. Signature: ```typescript -export declare function isString(value: unknown): value is string; +export declare function isString(input: unknown): input is string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| value | unknown | input | +| input | unknown | input | Returns: -value is string +input is string true if the input is string, false otherwise. diff --git a/docs/yotils.md b/docs/yotils.md index f46c45f..56e0188 100644 --- a/docs/yotils.md +++ b/docs/yotils.md @@ -11,13 +11,13 @@ TypeScript Utility Library. | Function | Description | | --- | --- | | [countItems(array)](./yotils.countitems.md) | (BETA) Counts of repeated items in flattened arrays. | -| [getLength(value)](./yotils.getlength.md) | Gets length of string \| array \| object | +| [getLength(input)](./yotils.getlength.md) | Gets length of string \| array \| object | | [hasDuplicates(array)](./yotils.hasduplicates.md) | Determines whether an array has duplicates. | | [indexBy(array, key)](./yotils.indexby.md) | Returns the spilted lists grouped by index. They key should be unique and for ununique keys it would be replaced with the last key. | -| [isArray(value)](./yotils.isarray.md) | Determines whether the input is an array or not. | -| [isArrayOfString(value)](./yotils.isarrayofstring.md) | Determines whether the input is array of string or not. | +| [isArray(input)](./yotils.isarray.md) | Determines whether the input is an array or not. | +| [isArrayOfString(input)](./yotils.isarrayofstring.md) | Determines whether the input is array of string or not. | | [isDate(value)](./yotils.isdate.md) | Determines whether the input is a Date type or not. | -| [isDateValid(value)](./yotils.isdatevalid.md) | Determines whether the input string is valid date or not. | +| [isDateValid(input)](./yotils.isdatevalid.md) | Determines whether the input string is valid date or not. | | [isDefined(value)](./yotils.isdefined.md) | Determines whether the input is defined or not. | | [isEmpty(value)](./yotils.isempty.md) | Determines whether an input is empty or not. | | [isEqualDate(target, other)](./yotils.isequaldate.md) | (BETA) Compares two given date type values. | @@ -27,7 +27,7 @@ TypeScript Utility Library. | [isObject(value)](./yotils.isobject.md) | Determines whether the input is an object or not. | | [isObjectLike(value)](./yotils.isobjectlike.md) | Determines whether the input is an object like or not. When a value is object like, it is not null and typeof result is "object". | | [isSet(value)](./yotils.isset.md) | Determines whether the input is Set or not. | -| [isString(value)](./yotils.isstring.md) | Determines whether the input is string or not. | -| [toChunks(value, chunkSize)](./yotils.tochunks.md) | (BETA) Split a string into N chunks of equal size. The last chunk may be smaller. | -| [wrapInArray(value)](./yotils.wrapinarray.md) | Wraps the input in an array even if the input is an array. | +| [isString(input)](./yotils.isstring.md) | Determines whether the input is string or not. | +| [toChunks(input, chunkSize)](./yotils.tochunks.md) | (BETA) Split a string into N chunks of equal size. The last chunk may be smaller. | +| [wrapInArray(input)](./yotils.wrapinarray.md) | Wraps the input in an array even if the input is an array. | diff --git a/docs/yotils.tochunks.md b/docs/yotils.tochunks.md index e23b485..e44fff3 100644 --- a/docs/yotils.tochunks.md +++ b/docs/yotils.tochunks.md @@ -12,14 +12,14 @@ Split a string into N chunks of equal size. The last chunk may be smaller. Signature: ```typescript -export declare function toChunks(value: string, chunkSize: number): string[]; +export declare function toChunks(input: string, chunkSize: number): string[]; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| value | string | string | +| input | string | string | | chunkSize | number | number | Returns: diff --git a/docs/yotils.wrapinarray.md b/docs/yotils.wrapinarray.md index afaf7d1..986457e 100644 --- a/docs/yotils.wrapinarray.md +++ b/docs/yotils.wrapinarray.md @@ -9,18 +9,18 @@ Wraps the input in an array even if the input is an array. Signature: ```typescript -export declare function wrapInArray(value: Type): Type[]; +export declare function wrapInArray(input: Input): Input[]; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | -| value | Type | input | +| input | Input | input | Returns: -Type\[\] +Input\[\] wrapped input in an array. diff --git a/etc/yotils.api.md b/etc/yotils.api.md index 9dfe59d..71adc44 100644 --- a/etc/yotils.api.md +++ b/etc/yotils.api.md @@ -7,30 +7,30 @@ // Warning: (ae-forgotten-export) The symbol "Primitive" needs to be exported by the entry point index.d.ts // // @beta -export function countItems(array: T[]): Record; +export function countItems(array: Item[]): Record; // @public -export function getLength(value: T): number; +export function getLength(input: Input): number; // @public -export function hasDuplicates(array: T[]): boolean; +export function hasDuplicates(array: Item[]): boolean; // @public -export function indexBy(array: T[], key: K): Record; +export function indexBy(array: Item[], key: Key): Record; // @public -export function isArray(value: unknown): value is Array; +export function isArray(input: unknown): input is Array; // @public -export function isArrayOfString(value: unknown): value is string[]; +export function isArrayOfString(input: unknown): input is string[]; // @public export function isDate(value: unknown): value is Date; // @public -export function isDateValid(value: string): value is string; +export function isDateValid(input: string): input is string; // @public export function isDefined(value: T): value is NonNullable; @@ -63,7 +63,7 @@ export function isObjectLike(value: T): value is T & object; export function isSet(value: T): value is T; // @public -export function isString(value: unknown): value is string; +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 @@ -72,9 +72,9 @@ export function isString(value: unknown): value is string; export function omitBy(object: AnyObject, fun: PredicateFunction): AnyObject; // @beta -export function toChunks(value: string, chunkSize: number): string[]; +export function toChunks(input: string, chunkSize: number): string[]; // @public -export function wrapInArray(value: Type): Type[]; +export function wrapInArray(input: Input): Input[]; ```