reactivedb
Advanced tools
Comparing version 0.7.0-alpha.1 to 0.7.0-alpha.2
@@ -8,3 +8,3 @@ /// <reference types="lovefield" /> | ||
import { PredicateDescription } from './PredicateProvider'; | ||
export interface SchemaMetadata { | ||
export interface SchemaMetadata<T> { | ||
type: RDBType | Association; | ||
@@ -20,3 +20,3 @@ primaryKey?: boolean; | ||
name?: string; | ||
where?(virtualTable: lf.schema.Table): PredicateDescription; | ||
where?(virtualTable: TableShap<T>): PredicateDescription; | ||
}; | ||
@@ -28,3 +28,3 @@ } | ||
export declare type SchemaDef<T> = { | ||
[P in keyof T]: SchemaMetadata; | ||
[P in keyof T]: SchemaMetadata<T>; | ||
}; | ||
@@ -31,0 +31,0 @@ export interface HookDef { |
@@ -1,2 +0,2 @@ | ||
declare var _default: "0.7.0-alpha.1"; | ||
declare var _default: "0.7.0-alpha.2-alpha0.7.0-alpha.2"; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = '0.7.0-alpha.1'; | ||
exports.default = '0.7.0-alpha.2-alpha0.7.0-alpha.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "reactivedb", | ||
"version": "0.7.0-alpha.1", | ||
"version": "0.7.0-alpha.2", | ||
"description": "Reactive ORM for Lovefield", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -35,3 +35,3 @@ import './RxOperator' | ||
export interface SchemaMetadata { | ||
export interface SchemaMetadata<T> { | ||
type: RDBType | Association | ||
@@ -47,3 +47,3 @@ primaryKey?: boolean | ||
name?: string | ||
where?(virtualTable: lf.schema.Table): PredicateDescription | ||
where?(virtualTable: TableShap<T>): PredicateDescription | ||
} | ||
@@ -60,3 +60,3 @@ // 被 Database.prototype.createRow 动态挂上去的 | ||
export type SchemaDef<T> = { | ||
[P in keyof T]: SchemaMetadata | ||
[P in keyof T]: SchemaMetadata<T> | ||
} | ||
@@ -641,3 +641,3 @@ | ||
key: string, | ||
def: SchemaMetadata, | ||
def: SchemaMetadata<any>, | ||
entity: any | ||
@@ -782,3 +782,3 @@ ) { | ||
nullable: string[], | ||
def: SchemaMetadata | ||
def: SchemaMetadata<any> | ||
): lf.schema.TableBuilder { | ||
@@ -785,0 +785,0 @@ const hiddenName = `${Database.__HIDDEN__}${rowName}` |
@@ -1,1 +0,1 @@ | ||
export default '0.7.0-alpha.1' | ||
export default '0.7.0-alpha.2-alpha0.7.0-alpha.2' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
205053