Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /**
* Ambient module declarations for third-party packages that lack TypeScript
* declarations. These shims give each module the minimal shape the consuming
* code actually relies on; they intentionally use `any` for the parts that are
* not exercised in a type-safe way.
*/
declare module 'reconnect-core' {
type Reconnect = {
on(event: string, handler: (...args: unknown[]) => void): Reconnect;
connect(opts?: object): Reconnect;
disconnect(): unknown;
removeAllListeners(): void;
};
function reconnectCore(
factory: (...args: unknown[]) => unknown,
): (connect: (...args: unknown[]) => void) => Reconnect;
export default reconnectCore;
}
declare module 'ut-bitsyntax' {
const bitSyntax: {
builder(pattern: string): (data: object) => Buffer;
matcher(pattern: string): (...args: unknown[]) => unknown;
parse(pattern: string): {name: string; size: number}[] | false;
build(pattern: {name: string; size: number}[], data: unknown): Buffer | false;
};
export default bitSyntax;
}
declare module 'mongo-uri-builder' {
function mongoUriBuilder(options: object): string;
export default mongoUriBuilder;
}
declare module 'ut-function.interpolate' {
function interpolate(template: string, params?: object): string;
export default interpolate;
}
declare module 'ut-bus/resolver.ts' {
function resolver(
hostname: string,
type: string,
tls?: boolean,
): Promise<{target: string; port: string}>;
export default resolver;
}
declare module 'ut-dns-discovery' {
type AnnounceCallback = (error?: Error | null) => void;
type Discovery = () => {
announce(service: string, port: string | number, cb: AnnounceCallback): void;
unannounce(service: string, port: string | number, cb: AnnounceCallback): void;
};
const discovery: Discovery;
export default discovery;
}
// Vite / esbuild glob-import support
interface ImportMeta {
glob(patterns: string | string[]): Record<string, () => Promise<unknown>>;
glob<T>(patterns: string | string[], options?: object): Record<string, () => Promise<T>>;
}
declare module 'picomatch' {
function picomatch(glob: string | string[], options?: object): (path: string) => boolean;
export default picomatch;
}
declare module 'minimist' {
interface ParsedArgs {
_: string[];
[key: string]: unknown;
}
function minimist(args?: string[], opts?: object): ParsedArgs;
export = minimist;
}
declare module 'rc' {
function rc(
name: string,
defaults?: object,
argv?: object,
parse?: (content: string) => object,
): object;
export = rc;
}
declare module 'ut-function.cbc' {
function cbc(key: string | Buffer, validate?: boolean): {
encrypt(data: string | Buffer): Buffer;
decrypt(data: string | Buffer): string;
};
export default cbc;
}
declare module 'ut-function.template' {
function template(obj: object, context: object): object;
export default template;
}
|