mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
[slonik] memberType in sql.array can be a string or another sql tagged template (#40445)
This commit is contained in:
committed by
Sheetal Nandi
parent
c86f688b14
commit
c842f6ed49
Vendored
+1
-1
@@ -300,7 +300,7 @@ export interface SqlTaggedTemplateType {
|
||||
<T = QueryResultRowType>(template: TemplateStringsArray, ...vals: ValueExpressionType[]): SqlSqlTokenType<T>;
|
||||
array: (
|
||||
values: PrimitiveValueExpressionType[],
|
||||
memberType: string
|
||||
memberType: TypeNameIdentifierType | SqlTokenType
|
||||
) => ArraySqlTokenType;
|
||||
identifier: (
|
||||
names: string[]
|
||||
|
||||
@@ -405,6 +405,10 @@ const samplesFromDocs = async () => {
|
||||
await connection.query(sql`
|
||||
SELECT (${sql.array([1, 2, 3], 'int4')})
|
||||
`);
|
||||
|
||||
await connection.query(sql`
|
||||
SELECT (${sql.array([1, 2, 3], sql`int[]`)})
|
||||
`);
|
||||
};
|
||||
|
||||
const sample3 = async () => {
|
||||
|
||||
Reference in New Issue
Block a user