@ngxs-contrib/emitter
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -284,2 +284,2 @@ (function (global, factory) { | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4cy1jb250cmliLWVtaXR0ZXIudW1kLmpzLm1hcCIsInNvdXJjZXMiOlsibmc6Ly9Abmd4cy1jb250cmliL2VtaXR0ZXIvbGliL2NvcmUvaW50ZXJuYWwvaW50ZXJuYWxzLnRzIiwibmc6Ly9Abmd4cy1jb250cmliL2VtaXR0ZXIvbGliL2NvcmUvZGVjb3JhdG9ycy9lbWl0dGVyLnRzIixudWxsLCJuZzovL0BuZ3hzLWNvbnRyaWIvZW1pdHRlci9saWIvY29yZS9hY3Rpb25zL2FjdGlvbnMudHMiLCJuZzovL0BuZ3hzLWNvbnRyaWIvZW1pdHRlci9saWIvZW1pdC5zZXJ2aWNlLnRzIiwibmc6Ly9Abmd4cy1jb250cmliL2VtaXR0ZXIvbGliL2NvcmUvZGVjb3JhdG9ycy9wYXlsb2FkLWVtaXR0ZXIudHMiLCJuZzovL0BuZ3hzLWNvbnRyaWIvZW1pdHRlci9saWIvZW1pdC5tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JzZXJ2YWJsZSB9IGZyb20gJ3J4anMnO1xuXG4vKipcbiAqIEN1c3RvbSBhY3Rpb24gaW50ZXJmYWNlXG4gKlxuICogQHByb3BlcnR5IHR5cGUgLSBTdGF0aWMgcHJvcGVydHkgdGhhdCBkZWZpbmVzIGFjdGlvbiB0eXBlXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgQ3VzdG9tQWN0aW9uPFQgPSBhbnksIFUgPSBhbnk+IHtcbiAgICB0eXBlOiBzdHJpbmc7XG4gICAgbmV3IChwYXlsb2FkPzogVSk6IFQ7XG59XG5cbi8qKlxuICogU3RhdGljIG1ldGFkYXRhIGZvciB0aGUgZW1pdHRlciBmdW5jdGlvblx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lvbnM6IHt9LFxuICAgICAgICAgICAgICAgIHR5cGU6IGFjdGlvbi50eXBlXG4gICAgICAgICAgICB9XTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIG1ldGEuYWN0aW9uc1t0eXBlXSA9IFt7XG4gICAgICAgICAgICAgICAgZm46IGAke2tleX1gLFxuICAgICAgICAgICAgICAgIG9wdGlvbnM6IHt9LFxuICAgICAgICAgICAgICAgIHR5cGVcbiAgICAgICAgICAgIH1dO1xuICAgICAgICB9XG5cbiAgICAgICAgZGVzY3JpcHRvci52YWx1ZVtFTUlUVEVSX01FVEFfS0VZXSA9IHtcbiAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgICBhY3Rpb25cbiAgICAgICAgfTtcblxuICAgICAgICB0YXJnZXQucHJvdG90eXBlW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgIHJldHVybiB0YXJnZXRba2V5XS5hcHBseSh0YXJnZXQsIGFyZ3VtZW50cyk7XG4gICAgICAgIH07XG4gICAgfTtcbn1cbiIsIi8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxyXG5Db3B5cmlnaHQgKGMpIE1pY3Jvc29mdCBDb3Jwb3JhdGlvbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC5cclxuTGljZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlIFwiTGljZW5zZVwiKTsgeW91IG1heSBub3QgdXNlXHJcbnRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRoIHRoZSBMaWNlbnNlLiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlXHJcbkxpY2Vuc2UgYXQgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wXHJcblxyXG5USElTIENPREUgSVMgUFJP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eXBlOiBzdHJpbmcgPSAob3B0aW9ucyAmJiBvcHRpb25zLnR5cGUpIHx8IGAke3RhcmdldC5uYW1lfS4ke2tleX1gO1xuICAgICAgICBjb25zdCBhY3Rpb246IGFueSB8IHVuZGVmaW5lZCA9IG9wdGlvbnMgJiYgb3B0aW9ucy5hY3Rpb247XG5cbiAgICAgICAgaWYgKG1ldGEuYWN0aW9uc1t0eXBlXSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBNZXRob2QgZGVjb3JhdGVkIHdpdGggc3VjaCB0eXBlIFxcYCR7dHlwZX1cXGAgYWxyZWFkeSBleGlzdHNgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIElmIHRoZSB1c2VyIHBhc3NlZCBjdXN0b20gYWN0aW9uXG4gICAgICAgIGlmIChhY3Rpb24pIHtcbiAgICAgICAgICAgIG1ldGEuYWN0aW9uc1thY3Rpb24udHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7fSxcbiAgICAgICAgICAgICAgICB0eXBlOiBhY3Rpb24udHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbdHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7fSxcbiAgICAgICAgICAgICAgICB0eXBlXG4gICAgICAgICAgICB9XTtcbiAgICAgICAgfVxuXG4gICAgICAgIGRlc2NyaXB0b3IudmFsdWVbRU1JVFRFUl9NRVRBX0tFWV0gPSB7XG4gICAgICAgICAgICB0eXBlLFxuICAgICAgICAgICAgYWN0aW9uXG4gICAgICAgIH07XG5cbiAgICAgICAgdGFyZ2V0LnByb3RvdHlwZVtrZXldID0gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICByZXR1cm4gdGFyZ2V0W2tleV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RhdGljIGZ1bmN0aW9ucyBjYW4gYmUgZGVjb3JhdGVkIHdpdGggQEVtaXR0ZXIoKSBkZWNvcmF0b3JgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0eXBlb2Yga2V5ID09PSAnc3ltYm9sJykge1xuICAgICAgICAgICAga2V5ID0ga2V5LnRvU3RyaW5nKCk7XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBtZXRhID0gZW5zdXJlU3RvcmVNZXRhZGF0YSh0YXJnZXQpO1xuICAgICAgICBjb25zdCB0eXBlOiBzdHJpbmcgPSAob3B0aW9ucyAmJiBvcHRpb25zLnR5cGUpIHx8IGAke3RhcmdldC5uYW1lfS4ke2tleX1gO1xuICAgICAgICBjb25zdCBhY3Rpb246IEN1c3RvbUFjdGlvbjxhbnksIGFueT4gfCB1bmRlZmluZWQgPSBvcHRpb25zICYmIG9wdGlvbnMuYWN0aW9uO1xuXG4gICAgICAgIGlmIChtZXRhLmFjdGlvbnNbdHlwZV0pIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgTWV0aG9kIGRlY29yYXRlZCB3aXRoIHN1Y2ggdHlwZSBcXGAke3R5cGV9XFxgIGFscmVhZHkgZXhpc3RzYCk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBJZiB0aGUgdXNlciBwYXNzZWQgY3VzdG9tIGFjdGlvblxuICAgICAgICBpZiAoYWN0aW9uKSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbYWN0aW9uLnR5cGVdID0gW3tcbiAgICAgICAgICAgICAgICBmbjogYCR7a2V5fWAsXG4gICAgICAgICAgICAgICAgb3B0aW9uczoge30sXG4gICAgICAgICAgICAgICAgdHlwZTogYWN0aW9uLnR5cGVcbiAgICAgICAgICAgIH1dO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbWV0YS5hY3Rpb25zW3R5cGVdID0gW3tcbiAgICAgICAgICAgICAgICBmbjogYCR7a2V5fWAsXG4gICAgICAg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YmUgZGVjb3JhdGVkIHdpdGggQEVtaXR0ZXIoKSBkZWNvcmF0b3JgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0eXBlb2Yga2V5ID09PSAnc3ltYm9sJykge1xuICAgICAgICAgICAga2V5ID0ga2V5LnRvU3RyaW5nKCk7XG4gICAgICAgIH1cblxuICAgICAgICBjb25zdCBtZXRhID0gZW5zdXJlU3RvcmVNZXRhZGF0YSh0YXJnZXQpO1xuICAgICAgICBjb25zdCB0eXBlOiBzdHJpbmcgPSAob3B0aW9ucyAmJiBvcHRpb25zLnR5cGUpIHx8IGAke3RhcmdldC5uYW1lfS4ke2tleX1gO1xuICAgICAgICBjb25zdCBhY3Rpb246IGFueSB8IHVuZGVmaW5lZCA9IG9wdGlvbnMgJiYgb3B0aW9ucy5hY3Rpb247XG5cbiAgICAgICAgaWYgKG1ldGEuYWN0aW9uc1t0eXBlXSkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBNZXRob2QgZGVjb3JhdGVkIHdpdGggc3VjaCB0eXBlIFxcYCR7dHlwZX1cXGAgYWxyZWFkeSBleGlzdHNgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIElmIHRoZSB1c2VyIHBhc3NlZCBjdXN0b20gYWN0aW9uXG4gICAgICAgIGlmIChhY3Rpb24pIHtcbiAgICAgICAgICAgIG1ldGEuYWN0aW9uc1thY3Rpb24udHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7fSxcbiAgICAgICAgICAgICAgICB0eXBlOiBhY3Rpb24udHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbdHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7fSxcbiAgICAgICAgICAgICAgICB0eXBlXG4gICAgICAgICAgICB9XTtcbiAgICAgICAgfVxuXG4gICAgICAgIGRlc2NyaXB0b3IudmFsdWVbRU1JVFRFUl9NRVRBX0tFWV0gPSB7XG4gICAgICAgICAgICB0eXBlLFxuICAgICAgICAgICAgYWN0aW9uXG4gICAgICAgIH07XG5cbiAgICAgICAgdGFyZ2V0LnByb3RvdHlwZVtrZXldID0gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICByZXR1cm4gdGFyZ2V0W2tleV0uYXBwbHkodGFyZ2V0LCBhcmd1bWVudHMpO1xuICAgICAgICB9O1xuICAgIH07XG59XG4iXX0= |
@@ -5,17 +5,2 @@ /** | ||
*/ | ||
/** | ||
* Custom action interface | ||
* | ||
* \@property type - Static property that defines action type | ||
* @record | ||
* @template T, U | ||
*/ | ||
export function CustomAction() { } | ||
function CustomAction_tsickle_Closure_declarations() { | ||
/** @type {?} */ | ||
CustomAction.prototype.type; | ||
/* TODO: handle strange member: | ||
new (payload?: U): T; | ||
*/ | ||
} | ||
// unsupported: template constraints. | ||
@@ -80,2 +65,2 @@ /** | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWxzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5neHMtY29udHJpYi9lbWl0dGVyLyIsInNvdXJjZXMiOlsibGliL2NvcmUvaW50ZXJuYWwvaW50ZXJuYWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBZ0NBLE1BQU0sQ0FBQyx1QkFBTSxRQUFRLEdBQUcsV0FBVyxDQUFDOzs7O0FBS3BDLE1BQU0sQ0FBQyx1QkFBTSxnQkFBZ0IsR0FBRyxtQkFBbUIsQ0FBQzs7Ozs7QUFFcEQsTUFBTSw4QkFBOEIsTUFBZ0I7SUFDaEQsRUF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dGVyIC0gUmVmZXJlbmNlIHRvIHRoZSBzdGF0aWMgZnVuY3Rpb24gZnJvbSB0aGUgc3RvcmVcbiAgICAgKiBAcmV0dXJucyAtIEEgcGxhaW4gb2JqZWN0IHdpdGggYW4gYGVtaXRgIGZ1bmN0aW9uIGZvciBjYWxsaW5nIGVtaXR0ZXJcbiAgICAgKi9cbiAgICBwdWJsaWMgZW1pdHRlcjxUID0gYW55LCBVID0gYW55PihlbWl0dGVyOiBGdW5jdGlvbik6IEVtaXR0YWJsZTxULCBVPiB7XG4gICAgICAgIGNvbnN0IGVtaXR0ZXJFdmVudDogRW1pdHRlck1ldGFEYXRhID0gZW1pdHRlcltFTUlUVEVSX01FVEFfS0VZXTtcblxuICAgICAgICBpZiAoIWVtaXR0ZXJFdmVudCkge1xuICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCdFbWl0dGVyIG1ldGhvZHMgc2hvdWxkIGJlIGRlY29yYXRlZCB1c2luZyBARW1pdHRlcigpIGRlY29yYXRvcicpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGVtaXQ6IChwYXlsb2FkPzogVCk6IE9ic2VydmFibGU8VT4gPT4ge1xuICAgICAgICAgICAgICAgIEVtaXR0ZXJBY3Rpb24udHlwZSA9IGVtaXR0ZXJFdmVudC50eXBlO1xuICAgICAgICAgICAgICAgIGNvbnN0IEFjdGlvbjogYW55IHwgdHlwZW9mIEVtaXR0ZXJBY3Rpb24gPSBlbWl0dGVyRXZlbnQuYWN0aW9uID8gZW1pdHRlckV2ZW50LmFjdGlvbiA6IEVtaXR0ZXJBY3Rpb247XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZGlzcGF0Y2gobmV3IEFjdGlvbihwYXlsb2FkKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgfVxufVxuIl19 |
@@ -51,2 +51,2 @@ /** | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9u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Rpb25zICYmIG9wdGlvbnMuYWN0aW9uO1xuXG4gICAgICAgIGlmIChtZXRhLmFjdGlvbnNbdHlwZV0pIHtcbiAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihgTWV0aG9kIGRlY29yYXRlZCB3aXRoIHN1Y2ggdHlwZSBcXGAke3R5cGV9XFxgIGFscmVhZHkgZXhpc3RzYCk7XG4gICAgICAgIH1cblxuICAgICAgICAvLyBJZiB0aGUgdXNlciBwYXNzZWQgY3VzdG9tIGFjdGlvblxuICAgICAgICBpZiAoYWN0aW9uKSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbYWN0aW9uLnR5cGVdID0gW3tcbiAgICAgICAgICAgICAgICBmbjogYCR7a2V5fWAsXG4gICAgICAgICAgICAgICAgb3B0aW9uczoge30sXG4gICAgICAgICAgICAgICAgdHlwZTogYWN0aW9uLnR5cGVcbiAgICAgICAgICAgIH1dO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbWV0YS5hY3Rpb25zW3R5cGVdID0gW3tcbiAgICAgICAgICAgICAgICBmbjogYCR7a2V5fWAsXG4gICAgICAgICAgICAgICAgb3B0aW9uczoge30sXG4gICAgICAgICAgICAgICAgdHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH1cblxuICAgICAgICBkZXNjcmlwdG9yLnZhbHVlW0VNSVRURVJfTUVUQV9LRVldID0ge1xuICAgICAgICAgICAgdHlwZSxcbiAgICAgICAgICAgIGFjdGlvblxuICAgICAgICB9O1xuXG4gICAgICAgIHRhcmdldC5wcm90b3R5cGVba2V5XSA9IGZ1bmN0aW9uKCkge1xuICAgICAgICAgICAgcmV0dXJuIHRhcmdldFtrZXldLmFwcGx5KHRhcmdldCwgYXJndW1lbnRzKTtcbiAgICAgICAgfTtcbiAgICB9O1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1pdHRlci5qcyIsInNvdXJjZVJvb3QiOiJu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ICAgICAgICAgdGhyb3cgbmV3IEVycm9yKGBNZXRob2QgZGVjb3JhdGVkIHdpdGggc3VjaCB0eXBlIFxcYCR7dHlwZX1cXGAgYWxyZWFkeSBleGlzdHNgKTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIElmIHRoZSB1c2VyIHBhc3NlZCBjdXN0b20gYWN0aW9uXG4gICAgICAgIGlmIChhY3Rpb24pIHtcbiAgICAgICAgICAgIG1ldGEuYWN0aW9uc1thY3Rpb24udHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7fSxcbiAgICAgICAgICAgICAgICB0eXBlOiBhY3Rpb24udHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbdHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7fSxcbiAgICAgICAgICAgICAgICB0eXBlXG4gICAgICAgICAgICB9XTtcbiAgICAgICAgfVxuXG4gICAgICAgIGRlc2NyaXB0b3IudmFsdWVbRU1JVFRFUl9NRVRBX0tFWV0gPSB7XG4gICAgICAgICAgICB0eXBlLFxuICAgICAgICAgICAgYWN0aW9uXG4gICAgICAgIH07XG5cbiAgICAgICAgdGFyZ2V0LnByb3RvdHlwZVtrZXldID0gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICByZXR1cm4gdGFyZ2V0W2tleV0uYXBwbHkodGFyZ2V0LCBhcmd1bWVudHMpO1xuICAgICAgICB9O1xuICAgIH07XG59XG4iXX0= |
@@ -5,17 +5,2 @@ /** | ||
*/ | ||
/** | ||
* Custom action interface | ||
* | ||
* \@property type - Static property that defines action type | ||
* @record | ||
* @template T, U | ||
*/ | ||
export function CustomAction() { } | ||
function CustomAction_tsickle_Closure_declarations() { | ||
/** @type {?} */ | ||
CustomAction.prototype.type; | ||
/* TODO: handle strange member: | ||
new (payload?: U): T; | ||
*/ | ||
} | ||
// unsupported: template constraints. | ||
@@ -80,2 +65,2 @@ /** | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWxzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5neHMtY29udHJpYi9lbWl0dGVyLyIsInNvdXJjZXMiOlsibGliL2NvcmUvaW50ZXJuYWwvaW50ZXJuYWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBZ0NBLE1BQU0sQ0FBQyxxQkFBTSxRQUFRLEdBQUcsV0FBVyxDQUFDOzs7O0FBS3BDLE1BQU0sQ0FBQyxxQkFBTSxnQkFBZ0IsR0FBRyxtQkFBbUIsQ0FBQzs7Ozs7QUFFcEQsTUFBTSw4QkFBOEIsTUFBZ0I7SUFDaEQsRUFBRSxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsY0FBYyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUNuQyxxQkFBTSxlQUFlLEdBQUc7WUFDcEIsSUFBSSxFQUFFLElBQUk7WUFDVixPQUFPLEVBQUUsRUFBRTtZQUNYLFFBQVEsRUFBRSxFQUFFO1lBQ1osSUFBSSxFQUFFLElBQUk7WUFDVixRQUFRLEVBQUUsRUFBRTtZQUNaLFFBQVEsRUFBRSxJQUFJO1NBQ2pCLENBQUM7UUFDRixNQUFNLENBQUMsY0FBYyxDQUFDLE1BQU0sRUFBRSxRQUFRLEVBQUUsRUFBRSxLQUFLLEVBQUUsZUFBZSxFQUFFLENBQUMsQ0FBQztLQUN2RTtJQUNELE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsQ0FBQztDQUNuQzs7Ozs7QUFFRCww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IGVtaXQocGF5bG9hZD86IFQpOiBPYnNlcnZhYmxlPFU+O1xufVxuXG5leHBvcnQgY29uc3QgTUVUQV9LRVkgPSAnTkdYU19NRVRBJztcblxuLyoqXG4gKiBAY29uc3QgLSBUaGlzIGNvbnN0YW50IGlzIGEga2V5IGZvciBkZWZpbmluZyBzdGF0aWMgbWV0YWRhdGEgdXNpbmcgYEBFbWl0dGVyYFxuICovXG5leHBvcnQgY29uc3QgRU1JVFRFUl9NRVRBX0tFWSA9ICdOR1hTX0VNSVRURVJfTUVUQSc7XG5cbmV4cG9ydCBmdW5jdGlvbiBlbnN1cmVTdG9yZU1ldGFkYXRhKHRhcmdldDogRnVuY3Rpb24pIHtcbiAgICBpZiAoIXRhcmdldC5oYXNPd25Qcm9wZXJ0eShNRVRBX0tFWSkpIHtcbiAgICAgICAgY29uc3QgZGVmYXVsdE1ldGFkYXRhID0ge1xuICAgICAgICAgICAgbmFtZTogbnVsbCxcbiAgICAgICAgICAgIGFjdGlvbnM6IHt9LFxuICAgICAgICAgICAgZGVmYXVsdHM6IHt9LFxuICAgICAgICAgICAgcGF0aDogbnVsbCxcbiAgICAgICAgICAgIGNoaWxkcmVuOiBbXSxcbiAgICAgICAgICAgIGluc3RhbmNlOiBudWxsXG4gICAgICAgIH07XG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh0YXJnZXQsIE1FVEFfS0VZLCB7IHZhbHVlOiBkZWZhdWx0TWV0YWRhdGEgfSk7XG4gICAgfVxuICAgIHJldHVybiBnZXRTdG9yZU1ldGFkYXRhKHRhcmdldCk7XG59XG5cbmZ1bmN0aW9uIGdldFN0b3JlTWV0YWRhdGEodGFyZ2V0OiBGdW5jdGlvbikge1xuICAgIHJldHVybiB0YXJnZXRbTUVUQV9LRVldO1xufVxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWxzLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5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yKCdFbWl0dGVyIG1ldGhvZHMgc2hvdWxkIGJlIGRlY29yYXRlZCB1c2luZyBARW1pdHRlcigpIGRlY29yYXRvcicpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHtcbiAgICAgICAgICAgIGVtaXQ6IChwYXlsb2FkPzogVCk6IE9ic2VydmFibGU8VT4gPT4ge1xuICAgICAgICAgICAgICAgIEVtaXR0ZXJBY3Rpb24udHlwZSA9IGVtaXR0ZXJFdmVudC50eXBlO1xuICAgICAgICAgICAgICAgIGNvbnN0IEFjdGlvbjogYW55IHwgdHlwZW9mIEVtaXR0ZXJBY3Rpb24gPSBlbWl0dGVyRXZlbnQuYWN0aW9uID8gZW1pdHRlckV2ZW50LmFjdGlvbiA6IEVtaXR0ZXJBY3Rpb247XG4gICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZGlzcGF0Y2gobmV3IEFjdGlvbihwYXlsb2FkKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgfVxufVxuIl19 |
@@ -227,2 +227,2 @@ import { Injectable, Injector, NgModule } from '@angular/core'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4cy1jb250cmliLWVtaXR0ZXIuanMubWFwIiwic291cmNlcyI6WyJuZzovL0BuZ3hzLWNvbnRyaWIvZW1pdHRlci9saWIvY29yZS9pbnRlcm5hbC9pbnRlcm5hbHMudHMiLCJuZzovL0BuZ3hzLWNvbnRyaWIvZW1pdHRlci9saWIvY29yZS9kZWNvcmF0b3JzL2VtaXR0ZXIudHMiLCJuZzovL0BuZ3hzLWNvbnRyaWIvZW1pdHRlci9saWIvY29yZS9hY3Rpb25zL2FjdGlvbnMudHMiLCJuZzovL0BuZ3hzLWNvbnRyaWIvZW1pdHRlci9saWIvZW1pdC5zZXJ2aWNlLnRzIiwibmc6Ly9Abmd4cy1jb250cmliL2VtaXR0ZXIvbGliL2NvcmUvZGVjb3JhdG9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Xl9YDtcbiAgICAgICAgY29uc3QgYWN0aW9uOiBDdXN0b21BY3Rpb248YW55LCBhbnk+IHwgdW5kZWZpbmVkID0gb3B0aW9ucyAmJiBvcHRpb25zLmFjdGlvbjtcblxuICAgICAgICBpZiAobWV0YS5hY3Rpb25zW3R5cGVdKSB7XG4gICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYE1ldGhvZCBkZWNvcmF0ZWQgd2l0aCBzdWNoIHR5cGUgXFxgJHt0eXBlfVxcYCBhbHJlYWR5IGV4aXN0c2ApO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gSWYgdGhlIHVzZXIgcGFzc2VkIGN1c3RvbSBhY3Rpb25cbiAgICAgICAgaWYgKGFjdGlvbikge1xuICAgICAgICAgICAgbWV0YS5hY3Rpb25zW2FjdGlvbi50eXBlXSA9IFt7XG4gICAgICAgICAgICAgICAgZm46IGAke2tleX1gLFxuICAgICAgICAgICAgICAgIG9wdGlvbnM6IHt9LFxuICAgICAgICAgICAgICAgIHR5cGU6IGFjdGlvbi50eXBlXG4gICAgICAgICAgICB9XTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIG1ldGEuYWN0aW9uc1t0eXBlXSA9IFt7XG4gICAgICAgICAgICAgICAgZm46IGAke2tleX1gLFxuICAgICAgICAgICAgICAgIG9wdGlvbnM6IHt9LFxuICAgICAgICAgICAgICAgIHR5cGVcbiAgICAgICAgICAgIH1dO1xuICAgICAgICB9XG5cbiAgICAgICAgZGVzY3JpcHRvci52YWx1ZVtFTUlUVEVSX01FVEFfS0VZXSA9IHtcbiAgICAgICAgICAgIHR5cGUsXG4gICAgICAgICAgICBhY3Rpb25cbiAgICAgICAgfTtcblxuICAgICAgICB0YXJnZXQucHJvdG90eXBlW2tleV0gPSBmdW5jdGlvbigpIHtcbiAgICAgICAgICAgIHJldHVybiB0YXJnZXRba2V5XS5hcHBseSh0YXJnZXQsIGFyZ3VtZW50cyk7XG4gICAgICAgIH07XG4gICAgfTt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9uXG4gICAgICAgIGlmIChhY3Rpb24pIHtcbiAgICAgICAgICAgIG1ldGEuYWN0aW9uc1thY3Rpb24udHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7fSxcbiAgICAgICAgICAgICAgICB0eXBlOiBhY3Rpb24udHlwZVxuICAgICAgICAgICAgfV07XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBtZXRhLmFjdGlvbnNbdHlwZV0gPSBbe1xuICAgICAgICAgICAgICAgIGZuOiBgJHtrZXl9YCxcbiAgICAgICAgICAgICAgICBvcHRpb25zOiB7fSxcbiAgICAgICAgICAgICAgICB0eXBlXG4gICAgICAgICAgICB9XTtcbiAgICAgICAgfVxuXG4gICAgICAgIGRlc2NyaXB0b3IudmFsdWVbRU1JVFRFUl9NRVRBX0tFWV0gPSB7XG4gICAgICAgICAgICB0eXBlLFxuICAgICAgICAgICAgYWN0aW9uXG4gICAgICAgIH07XG5cbiAgICAgICAgdGFyZ2V0LnByb3RvdHlwZVtrZXldID0gZnVuY3Rpb24oKSB7XG4gICAgICAgICAgICByZXR1cm4gdGFyZ2V0W2tleV0uYXBwbHkodGFyZ2V0LCBhcmd1bWVudHMpO1xuICAgICAgICB9O1xuICAgIH07XG59XG4iLCIvKipcbiAqIFRoaXMgY2xhc3MgaXMgdXNlZCBhcyBhIGRlZmF1bHQgYWN0aW9uIHdoZW4gdGhlIHVzZXIgZG9lc24ndCBwYXNzIGFueSBjdXN0b20gYWN0aW9uIGFzIGFuIGFyZ3VtZW50XG4gKi9cbmV4cG9ydCBjbGFzcyBFbWl0dGVyQWN0aW9uPFQgPSBhbnk+IHtcbiAgICAvKipcbiAgICAgKiBBY3Rpb24gdHlwZVxuICAgICAqL1xuICAgIHB1YmxpYyBzdGF0aWMgdHlwZTogc3RyaW5nIHwgbnVsbCA9IG51bGw7XG5cbiAgICAvKipcbiAgICAgKiBDcmVhdGVzI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Q04sQ0FBQztDQUNMOzs7Ozs7QUN2Q0Q7SUFZSSw4QkFBWSxxQkFBNEM7S0FBSTs7OztJQUs5Qyw0QkFBTzs7OztRQUNqQixPQUFPO1lBQ0gsUUFBUSxFQUFFLG9CQUFvQjtTQUNqQyxDQUFDOzs7Z0JBZlQsUUFBUSxTQUFDO29CQUNOLFNBQVMsRUFBRTt3QkFDUCxxQkFBcUI7d0JBQ3JCLFNBQVM7cUJBQ1o7aUJBQ0o7Ozs7Z0JBUlEscUJBQXFCOzsrQkFGOUI7Ozs7Ozs7Ozs7Ozs7OzsifQ== |
@@ -0,12 +1,4 @@ | ||
import { Type } from '@angular/core'; | ||
import { Observable } from 'rxjs'; | ||
/** | ||
* Custom action interface | ||
* | ||
* @property type - Static property that defines action type | ||
*/ | ||
export interface CustomAction<T = any, U = any> { | ||
type: string; | ||
new (payload?: U): T; | ||
} | ||
/** | ||
* Static metadata for the emitter function | ||
@@ -19,3 +11,3 @@ * | ||
type: string; | ||
action: CustomAction<T>; | ||
action: Type<T>; | ||
} | ||
@@ -22,0 +14,0 @@ /** |
{ | ||
"name": "@ngxs-contrib/emitter", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^6.0.0-rc.0 || ^6.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
192559
35
1402