@jd-data-limited/easy-fm
Version:
easy-fm is a Node.js module that allows you to interact with a [FileMaker database stored](https://www.claris.com/filemaker/) on a [FileMaker server](https://www.claris.com/filemaker/server/). This module interacts with your server using the [FileMaker
17 lines (16 loc) • 701 B
TypeScript
import { type Moment } from 'moment';
export declare const FindRequestSymbol: unique symbol;
export interface TimestampType {
type: 'date' | 'time' | 'timestamp';
moment: Moment;
}
type QueryParameter = string | number | TimestampType;
export interface Query {
[FindRequestSymbol]: Array<string | TimestampType>;
}
export declare function queryEscape(str: string): string;
export declare function query(strings: TemplateStringsArray, ...args: QueryParameter[]): Query;
export declare function asDate(date: Date | Moment): TimestampType;
export declare function asTime(date: Date | Moment): TimestampType;
export declare function asTimestamp(date: Date | Moment): TimestampType;
export {};