organizer-core
Advanced tools
Comparing version 0.1.2 to 0.1.3
export declare type Scalar = string | number | boolean | undefined | null; | ||
export interface JsonSerializable<T> { | ||
toJSON(): T; | ||
} |
import { Scalar } from './'; | ||
import { JsonSerializable } from './definitions'; | ||
export declare type ModelType = Record<string, Scalar | Array<ModelType>>; | ||
export declare type DbEntity = ModelType & { | ||
toJSON(): ModelType; | ||
}; | ||
export declare type DbEntity<T extends ModelType> = T & JsonSerializable<T>; | ||
export interface DomainModel<DTO extends ModelType> { | ||
@@ -7,0 +6,0 @@ __props__: DTO; |
import { Criteria } from './criteria.interface'; | ||
import { ModelType } from '../model'; | ||
import { DbEntity } from '../model/model.interface'; | ||
interface DbRepository<K extends DbEntity = DbEntity> { | ||
interface DbRepository<T extends ModelType = ModelType, K extends DbEntity<T> = DbEntity<T>> { | ||
findById(id: string): Promise<K>; | ||
@@ -6,0 +6,0 @@ findOne(criteria: Criteria): Promise<K>; |
{ | ||
"name": "organizer-core", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Core modules for organizer", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
59734
866