Skip to content

Commit

Permalink
fix(types): correct isNil and isArray definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
benasher44 authored and nikku committed Jan 17, 2024
1 parent a4361f5 commit 8a61828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lang.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import {

export function isUndefined(obj: any): obj is null | undefined;
export function isDefined(obj: any): obj is Exclude<any, null | undefined>;
export function isNil(obj: any): value is null | undefined;
export function isArray(obj: any): obj is Array;
export function isNil(obj: any): obj is null | undefined;
export function isArray(obj: any): obj is Array<any>;
export function isObject(obj: any): obj is object;
export function isNumber(obj: any): obj is number;
export function isFunction(obj: any): obj is Function;
Expand All @@ -26,4 +26,4 @@ export function ensureArray<T>(obj: Collection<T>): void | never;
*
* @return
*/
export function has(target: any, key: string): boolean;
export function has(target: any, key: string): boolean;

0 comments on commit 8a61828

Please sign in to comment.