destroyable
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -12,3 +12,3 @@ import { IDestroyable } from './IDestroyable'; | ||
/** | ||
* TODO: !!! isDestroyed | ||
* Is this object destroyed? | ||
*/ | ||
@@ -15,0 +15,0 @@ get isDestroyed(): boolean; |
@@ -58,3 +58,3 @@ "use strict"; | ||
/** | ||
* TODO: !!! isDestroyed | ||
* Is this object destroyed? | ||
*/ | ||
@@ -61,0 +61,0 @@ get: function () { |
/** | ||
* @collboard-modules-sdk | ||
*/ | ||
export interface IRegisterItemsOptions<TType, TItem> { | ||
export interface IRegisterItemsOptions<TBaseType, TItem> { | ||
/** | ||
* Base will be mutated in every call of registerItemsInWhateher functions and when the returned registration is destroyed | ||
*/ | ||
base: TType; | ||
base: TBaseType; | ||
/** | ||
* Add is array of items which will be added into base | ||
*/ | ||
add: TType; | ||
add: TBaseType; | ||
/** | ||
@@ -25,3 +25,2 @@ * This function will compare if two items either from base or add are equal. | ||
collisionStrategy?: 'ERROR' | 'WARN' | 'SKIP' | 'OVERRIDE'; | ||
lllllTODO?: (item: TItem | TItem[]) => any; | ||
} | ||
@@ -28,0 +27,0 @@ /** |
@@ -9,2 +9,2 @@ import { IRegisterItemsOptions } from './IRegisterItemsOptions'; | ||
*/ | ||
export declare function registerItemsInArray<TItem>({ base, add, isEqual, collisionStrategy, lllllTODO, }: IRegisterItemsOptions<TItem[], TItem>): Registration; | ||
export declare function registerItemsInArray<TItem>({ base, add, isEqual, collisionStrategy, }: IRegisterItemsOptions<TItem[], TItem>): Registration; |
@@ -13,3 +13,3 @@ "use strict"; | ||
function registerItemsInArray(_a) { | ||
var base = _a.base, add = _a.add, isEqual = _a.isEqual, collisionStrategy = _a.collisionStrategy, lllllTODO = _a.lllllTODO; | ||
var base = _a.base, add = _a.add, isEqual = _a.isEqual, collisionStrategy = _a.collisionStrategy; | ||
isEqual = isEqual || (function (a, b) { return a === b; }); | ||
@@ -16,0 +16,0 @@ collisionStrategy = collisionStrategy || 'ERROR'; |
{ | ||
"name": "destroyable", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "Multiple utilities that help to build destroyable objects in javascript", | ||
@@ -5,0 +5,0 @@ "author": "Pavol Hejný <pavol@collboard.com> (https://pavolhejny.com)", |
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
62682
1065