UNPKG

cql-execution

Version:

An execution framework for the Clinical Quality Language (CQL)

15 lines (14 loc) 930 B
export declare type Direction = 'asc' | 'ascending' | 'desc' | 'descending'; export declare function removeNulls(things: any[]): any[]; export declare function numerical_sort(things: any[], direction: Direction | null): any[]; export declare function isNull(value: any): boolean; export declare const typeIsArray: (arg: any) => arg is any[]; export declare function allTrue(things: any): any; export declare function anyTrue(things: any): any; export declare const jsDate: DateConstructor; export declare function normalizeMillisecondsFieldInString(string: string, msString: string): string; export declare function normalizeMillisecondsField(msString: string): string; export declare function getTimezoneSeparatorFromString(string: string): "-" | "+" | ""; declare type SortCompareFn<T> = (a: T, b: T) => Promise<number>; export declare function asyncMergeSort<T>(arr: T[], compareFn: SortCompareFn<T>): Promise<T[]>; export {};