@mrnafisia/type-query
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -32,2 +32,5 @@ import { JSON } from './json'; | ||
}; | ||
declare type AliasedColumns<Columns extends Table['columns'], Alias extends string> = { | ||
[key in keyof Columns as `${Alias}_${key & string}`]: Columns[key]; | ||
}; | ||
declare type TablesColumnsKeys<Tables extends { | ||
@@ -65,3 +68,3 @@ [key: string]: Table; | ||
export type { JoinType, Param, QueryData, TableData, JoinData, Mode }; | ||
export type { CustomColumn, NullableAndDefaultColumns, TablesColumnsKeys }; | ||
export type { CustomColumn, NullableAndDefaultColumns, AliasedColumns, TablesColumnsKeys }; | ||
export type { ExpressionTypes, Expression, ValueExpression, QueryExpression }; | ||
@@ -68,0 +71,0 @@ export type { InsertValue, UpdateSets }; |
@@ -222,2 +222,3 @@ import Decimal from 'decimal.js'; | ||
}); | ||
declare type Column = Base & Primary & Types & Default; | ||
declare type Table = { | ||
@@ -227,3 +228,3 @@ schema: string; | ||
columns: { | ||
[key: string]: Base & Primary & Types & Default; | ||
[key: string]: Column; | ||
}; | ||
@@ -239,3 +240,3 @@ }; | ||
export default Table; | ||
export type { ReferenceActions, TableCheck }; | ||
export type { ReferenceActions, Column, TableCheck }; | ||
//# sourceMappingURL=table.d.ts.map |
{ | ||
"name": "@mrnafisia/type-query", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "mini-orm with full type support for postgres.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
409868
5392
1