UNPKG

rawx

Version:

process daemon with utilities

48 lines (47 loc) 1.52 kB
/*** * license kind, whatever you want * Original: https://github.com/lilzeta * Flux this tag if/whenever you feel like */ export interface Base_I { defi: (obj: any) => boolean; empty: (obj: any) => boolean; truncate: (s: str, l: number) => str; pretty: (obj: any) => str; wait: Wait; puff: (p_name: str, q: any) => any; fuzzy_true: Thing1_Thing2; fuzzy_false: Thing1_Thing2; keys: typeof Object.keys; entries: typeof Object.entries; } import { str } from "./index"; export declare type Base_C = new () => Base_I; export declare type Wait = (n: number) => Promise<void>; export declare class Base implements Base_I { constructor(); defi(obj: any): boolean; empty(obj: any): boolean; truncate: (dis?: str, to_length?: number) => string; pretty(obj: any): string; wait: Wait; puff: (prop_name: str, q: any, p_o?: Puff_Options) => { [x: string]: any; }; if_in_get_index: (arr: Array<str | boolean>, p: str | boolean) => false | number; fuzzy_true: (item?: str | boolean) => boolean; fuzzy_false: (item?: str | boolean) => boolean; keys: { (o: object): string[]; (o: {}): string[]; }; entries: { <T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][]; (o: {}): [string, any][]; }; } declare type Puff_Options = "length" | undefined; export declare type Thing1_Thing2 = (item?: str | boolean) => boolean; export {};