Socket
Socket
Sign inDemoInstall

organizer-core

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

organizer-core - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

3

dist/Base/model/definitions.d.ts
export declare type Scalar = string | number | boolean | undefined | null;
export interface JsonSerializable<T> {
toJSON(): T;
}

5

dist/Base/model/model.interface.d.ts
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc