UNPKG

@nestjs-kitchen/connextion-presto

Version:

A flexible module to provide presto-client interface in NextJS.

13 lines (12 loc) 736 B
import type { Column } from 'presto-client'; export declare const truncateString: (str: string, maxLength: number) => string; export declare const printTable: (logData: Record<string, any>) => string; export declare const getCurrentDateStr: () => string; export declare const createDebugLogger: (defaultLogger: (...rest: any) => void, customFormater?: Boolean | ((data: Record<any, any>) => void)) => (data: Record<any, any>) => void; export declare const buildDataRows: <T>(columns: Column[], data: unknown[][]) => T[]; export declare const noop: (..._: unknown[]) => void; export declare const withResolvers: <T>() => { promise: Promise<T>; resolve: (value: T | PromiseLike<T>) => void; reject: (reason?: any) => void; };