diff --git a/apis/ql.d.ts b/apis/ql.d.ts index 24449377..d85f6f76 100644 --- a/apis/ql.d.ts +++ b/apis/ql.d.ts @@ -120,8 +120,8 @@ export type StaticSELECT = typeof SELECT & ((...columns: string[]) => SELECT) & ((columns: string[]) => SELECT) & (TaggedTemplateQueryPart>) - & SELECT_one // as it is not directly quantified, ... - & SELECT_from // ...we should expect both a scalar and a list + & SELECT_from // as it is not directly quantified, ... + & SELECT_one // ...we should expect both a scalar and a list declare class QL { diff --git a/test/typescript/apis/project/cds-ql.ts b/test/typescript/apis/project/cds-ql.ts index ff88940d..ce26cd42 100644 --- a/test/typescript/apis/project/cds-ql.ts +++ b/test/typescript/apis/project/cds-ql.ts @@ -18,6 +18,8 @@ s.SELECT.columns?.[0].ref s.SELECT.where?.[0].ref s.SELECT.where?.[2].val +SELECT(Foos) === SELECT.from(Foos) + INSERT.into(Foos).columns("x") // x was suggested by code completion let ins: INSERT ins = INSERT.into(Foos, {})