UNPKG

547 BTypeScriptView Raw
1import { EntityMetadata } from "../metadata/EntityMetadata";
2/**
3 */
4export declare class Alias {
5 type: "from" | "select" | "join" | "other";
6 name: string;
7 /**
8 * Table on which this alias is applied.
9 * Used only for aliases which select custom tables.
10 */
11 tablePath?: string;
12 /**
13 * If this alias is for sub query.
14 */
15 subQuery?: string;
16 constructor(alias?: Alias);
17 private _metadata?;
18 readonly target: Function | string;
19 readonly hasMetadata: boolean;
20 metadata: EntityMetadata;
21}