UNPKG

koishi-test-utils

Version:
32 lines (31 loc) 840 B
import { App } from 'koishi-core'; import '../../chai'; interface Foo { id?: number; text?: string; value?: number; list?: number[]; date?: Date; } declare module 'koishi-core' { interface Tables { foo: Foo; } } declare namespace QueryOperators { export const name = "QueryOperators"; export const comparison: (app: App) => void; export const membership: (app: App) => void; export const regexp: (app: App) => void; export const bitwise: (app: App) => void; interface ListOptions { size?: boolean; element?: boolean; elementQuery?: boolean; } export const list: (app: App, options?: ListOptions) => void; export const evaluation: (app: App) => void; export const logical: (app: App) => void; export {}; } export default QueryOperators;