@yopem/object-parser
Version:
24 lines (22 loc) • 827 B
text/typescript
declare class ObjectParser {
private value;
constructor(value: unknown);
has(...path: string[]): boolean;
get(...path: string[]): unknown;
isString(...path: string[]): boolean;
getString(...path: string[]): string;
isNumber(...path: string[]): boolean;
getNumber(...path: string[]): number;
isBoolean(...path: string[]): boolean;
getBoolean(...path: string[]): boolean;
isBigInt(...path: string[]): boolean;
getBigInt(...path: string[]): bigint;
isObject(...path: string[]): boolean;
getObject(...path: string[]): object;
isArray(...path: string[]): boolean;
getArray(...path: string[]): unknown[];
isNull(...path: string[]): boolean;
isUndefined(...path: string[]): boolean;
createParser(...path: string[]): ObjectParser;
}
export { ObjectParser };