@ssv/ngx.command 3.0.0-dev.13 → 3.0.0-dev.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/command.model.ts +4 -1
- package/src/command.options.ts +1 -1
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssv/ngx.command",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
3
|
+
"version": "3.0.0-dev.19",
|
|
4
4
|
"versionSuffix": "",
|
|
5
5
|
"description": "Command pattern implementation for angular. Command used to encapsulate information which is needed to perform an action.",
|
|
6
6
|
"keywords": [
|
package/src/command.model.ts
CHANGED
|
@@ -27,7 +27,10 @@ export interface ICommand {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface CommandCreator {
|
|
30
|
-
|
|
30
|
+
// todo: stricter typing
|
|
31
|
+
// execute: (...args: TParams extends unknown[] ? TParams : [TParams]) => Observable<unknown> | Promise<unknown> | void;
|
|
32
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
|
+
execute: (...args: any[]) => Observable<unknown> | Promise<unknown> | void;
|
|
31
34
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
32
35
|
canExecute?: Observable<boolean> | Function;
|
|
33
36
|
params?: unknown | unknown[];
|
package/src/command.options.ts
CHANGED
|
@@ -28,7 +28,7 @@ export const COMMAND_OPTIONS = new InjectionToken<CommandOptions>("SSV_COMMAND_O
|
|
|
28
28
|
factory: () => DEFAULT_OPTIONS,
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
export function provideSsvCommandOptions(options: CommandOptions | (() => CommandOptions)): EnvironmentProviders {
|
|
31
|
+
export function provideSsvCommandOptions(options: Partial<CommandOptions> | (() => Partial<CommandOptions>)): EnvironmentProviders {
|
|
32
32
|
let opts = typeof options === "function" ? options() : options;
|
|
33
33
|
opts = opts
|
|
34
34
|
? {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.0.0-dev.
|
|
1
|
+
export const VERSION = "3.0.0-dev.19";
|