@mrnafisia/type-query
Advanced tools
Comparing version 2.0.14 to 2.0.15
@@ -20,2 +20,7 @@ import { Result } from 'never-catch'; | ||
}; | ||
type ModelWithPrefix<S extends Schema, R extends readonly (keyof S)[], O extends readonly (keyof S)[], P extends string> = { | ||
[key in Exclude<keyof R, keyof never[]> as `${P}${R[key] & string}`]: NullableType<S[R[key] & string]['type'], S[R[key] & string]['nullable']>; | ||
} & { | ||
[key in Exclude<keyof O, keyof never[]> as `${P}${O[key] & string}`]?: NullableType<S[O[key] & string]['type'], S[O[key] & string]['nullable']>; | ||
}; | ||
type ModelParser<S extends Schema, EMap extends { | ||
@@ -32,4 +37,4 @@ [key in keyof S]: unknown; | ||
}) => ModelParser<S, EMap>; | ||
export type { Model, ModelParser }; | ||
export type { Model, ModelWithPrefix, ModelParser }; | ||
export { Int2Range, Int4Range, Int8Range, createModelParser }; | ||
//# sourceMappingURL=createModelParser.d.ts.map |
export { type Context, createContext } from './context'; | ||
export { type Model, Int2Range, Int4Range, Int8Range, createModelParser } from './createModelParser'; | ||
export { type Model, type ModelWithPrefix, Int2Range, Int4Range, Int8Range, createModelParser } from './createModelParser'; | ||
export { generateCreateSequencesSQL, generateDropSequencesSQL, generateCreateTableSQL, generateDropTableSQL, getSequenceName } from './ddl'; | ||
@@ -4,0 +4,0 @@ export { type InsertingRow, type UpdateSets, type JoinType, type OrderDirection, type Mode, type CustomColumn, createEntity } from './entity'; |
{ | ||
"name": "@mrnafisia/type-query", | ||
"version": "2.0.14", | ||
"version": "2.0.15", | ||
"description": "mini-orm with full type support for postgres.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
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
284781
2520