redux-saga-resources
Advanced tools
Comparing version 0.1.14 to 0.1.15
@@ -56,3 +56,3 @@ import { Action } from 'redux'; | ||
createImmediately?: boolean; | ||
id?: string; | ||
id?: any; | ||
merger?: IBatchMerger<T>; | ||
@@ -59,0 +59,0 @@ } |
@@ -52,3 +52,3 @@ import { Action } from 'redux'; | ||
createImmediately?: boolean; | ||
id?: string; | ||
id?: any; | ||
} | ||
@@ -55,0 +55,0 @@ export interface IEditorDescriptor<T> { |
@@ -63,4 +63,4 @@ import { Action } from 'redux'; | ||
key(item: T): string; | ||
id(item: T): string; | ||
tempId(item: T): string; | ||
id(item: T): any; | ||
tempId(item: T): any; | ||
error(item: T): any; | ||
@@ -85,3 +85,3 @@ isModified(item: T): Status; | ||
export interface IResourceOptions { | ||
id?: string; | ||
id?: any; | ||
} | ||
@@ -88,0 +88,0 @@ export interface IResourceDescriptor<T> { |
{ | ||
"name": "redux-saga-resources", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "typings": "es6/index.d.ts", |
@@ -44,3 +44,3 @@ import { Action } from 'redux'; | ||
createImmediately?: boolean; | ||
id?: string; | ||
id?: any; | ||
merger?: IBatchMerger<T>; | ||
@@ -47,0 +47,0 @@ } |
@@ -74,3 +74,3 @@ import { Action } from 'redux'; | ||
createImmediately?: boolean; | ||
id?: string; | ||
id?: any; | ||
} | ||
@@ -77,0 +77,0 @@ export interface IEditorDescriptor<T> { |
@@ -85,4 +85,4 @@ import { Action } from 'redux'; | ||
key(item: T): string; | ||
id(item: T): string; | ||
tempId(item: T): string; | ||
id(item: T): any; | ||
tempId(item: T): any; | ||
error(item: T): any; | ||
@@ -108,3 +108,3 @@ isModified(item: T): Status; | ||
export interface IResourceOptions { | ||
id?: string; | ||
id?: any; | ||
} | ||
@@ -111,0 +111,0 @@ |
@@ -16,3 +16,3 @@ import 'arrayq'; | ||
error: (state: any) => scope(state).error as string, | ||
itemById: (id: string) => (state: any) => scope(state).list.qFirst((item: T) => hasSameId(item, { [options.id]: id } as any)), | ||
itemById: (id: any) => (state: any) => scope(state).list.qFirst((item: T) => hasSameId(item, { [options.id]: id } as any)), | ||
itemByItem: (item: T) => (state: any) => scope(state).list.qFirst((existing: T) => hasSameId(item, existing)), | ||
@@ -19,0 +19,0 @@ items: (state: any) => scope(state).list as T[], |
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
369378