-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
25 lines (23 loc) · 1.22 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
declare namespace oop {
export function toNumber(value: bigint): bigint;
export function toNumber(value: any): number;
export function toString(value: any, options?: { allowEmptyString?: boolean }): string;
export function toSymString(value: symbol): symbol;
export function toSymString(value: any): string;
export function toBigInt(value: any): bigint;
export function toIterable(value: Iterable<any>): Iterable<any>
export function toIterable(value: Array<any> | ArrayLike<any>): Array<any>;
export function toPlainObject(value: Iterable<any> | null | undefined | object, handleNullAndUndefined?: boolean): object;
export function toNullableString(value: any): string;
export function toNullableString(value: null | undefined): null;
export function toNullableNumber(value: bigint): bigint;
export function toNullableNumber(value: null | undefined): null;
export function toNullableNumber(value: any): number;
export function toNullableBoolean(value: any): boolean;
export function toNullableBoolean(value: null | undefined): null;
export namespace utils {
export function toNullable(predicate: (value: any) => any): Function;
}
}
export = oop;
export as namespace oop;