refql
Version:
A Node.js and Deno library for composing and running SQL queries.
14 lines (13 loc) • 436 B
TypeScript
declare const PropTypeSymbol: unique symbol;
interface PropType<As extends string> {
as: As;
tableName?: string;
setTableName(tableName: string): PropType<As>;
[PropTypeSymbol]: true;
}
export declare const propTypePrototype: {
[PropTypeSymbol]: boolean;
setTableName: typeof setTableName;
};
declare function setTableName<As extends string>(this: PropType<As>, tableName: string): any;
export default PropType;