@ngxs/store 18.1.2-dev.master-cbc269d → 18.1.2-dev.master-eaf3f9d

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.
Files changed (119) hide show
  1. package/LICENSE +22 -0
  2. package/experimental/index.d.ts +12 -1
  3. package/index.d.ts +745 -6
  4. package/internals/index.d.ts +206 -10
  5. package/internals/testing/index.d.ts +31 -4
  6. package/operators/index.d.ts +101 -13
  7. package/package.json +1 -1
  8. package/plugins/index.d.ts +62 -3
  9. package/experimental/pending-tasks.d.ts +0 -8
  10. package/internals/custom-rxjs-operators.d.ts +0 -2
  11. package/internals/custom-rxjs-subjects.d.ts +0 -42
  12. package/internals/initial-state.d.ts +0 -8
  13. package/internals/internal-tokens.d.ts +0 -3
  14. package/internals/memoize.d.ts +0 -9
  15. package/internals/metadata.d.ts +0 -25
  16. package/internals/ngxs-app-bootstrapped-state.d.ts +0 -8
  17. package/internals/state-stream.d.ts +0 -15
  18. package/internals/state-token.d.ts +0 -7
  19. package/internals/symbols.d.ts +0 -88
  20. package/internals/testing/fresh-platform.d.ts +0 -1
  21. package/internals/testing/helpers/ngxs-test.component.d.ts +0 -8
  22. package/internals/testing/helpers/ngxs-test.module.d.ts +0 -10
  23. package/internals/testing/ngxs.setup.d.ts +0 -7
  24. package/internals/testing/skip-console-logging.d.ts +0 -4
  25. package/internals/testing/symbol.d.ts +0 -14
  26. package/operators/append.d.ts +0 -5
  27. package/operators/compose.d.ts +0 -2
  28. package/operators/iif.d.ts +0 -10
  29. package/operators/insert-item.d.ts +0 -6
  30. package/operators/patch.d.ts +0 -7
  31. package/operators/remove-item.d.ts +0 -6
  32. package/operators/types.d.ts +0 -56
  33. package/operators/update-item.d.ts +0 -9
  34. package/operators/utils.d.ts +0 -8
  35. package/plugins/actions.d.ts +0 -15
  36. package/plugins/symbols.d.ts +0 -13
  37. package/plugins/utils.d.ts +0 -29
  38. package/schematics/src/actions/actions.factory.d.ts +0 -3
  39. package/schematics/src/ng-add/add-declaration.d.ts +0 -4
  40. package/schematics/src/ng-add/ng-add.factory.d.ts +0 -9
  41. package/schematics/src/starter-kit/starter-kit.factory.d.ts +0 -3
  42. package/schematics/src/state/state.factory.d.ts +0 -3
  43. package/schematics/src/store/store.factory.d.ts +0 -3
  44. package/schematics/src/utils/common/lib.config.d.ts +0 -10
  45. package/schematics/src/utils/common/project-files.config.d.ts +0 -3
  46. package/schematics/src/utils/common/properties.d.ts +0 -1
  47. package/schematics/src/utils/config.d.ts +0 -119
  48. package/schematics/src/utils/generate-utils.d.ts +0 -4
  49. package/schematics/src/utils/interfaces/package.interface.d.ts +0 -7
  50. package/schematics/src/utils/normalize-options.d.ts +0 -11
  51. package/schematics/src/utils/project.d.ts +0 -20
  52. package/src/actions/action-registry.d.ts +0 -12
  53. package/src/actions/symbols.d.ts +0 -7
  54. package/src/actions-stream.d.ts +0 -39
  55. package/src/configs/messages.config.d.ts +0 -13
  56. package/src/decorators/action.d.ts +0 -30
  57. package/src/decorators/select/select-factory.d.ts +0 -16
  58. package/src/decorators/select/select.d.ts +0 -7
  59. package/src/decorators/select/symbols.d.ts +0 -9
  60. package/src/decorators/selector/selector.d.ts +0 -9
  61. package/src/decorators/selector/symbols.d.ts +0 -73
  62. package/src/decorators/selector-options.d.ts +0 -5
  63. package/src/decorators/state.d.ts +0 -5
  64. package/src/dev-features/ngxs-development.module.d.ts +0 -10
  65. package/src/dev-features/ngxs-unhandled-actions-logger.d.ts +0 -17
  66. package/src/dev-features/symbols.d.ts +0 -8
  67. package/src/execution/dispatch-outside-zone-ngxs-execution-strategy.d.ts +0 -14
  68. package/src/execution/internal-ngxs-execution-strategy.d.ts +0 -10
  69. package/src/execution/noop-ngxs-execution-strategy.d.ts +0 -8
  70. package/src/execution/symbols.d.ts +0 -16
  71. package/src/internal/dispatcher.d.ts +0 -36
  72. package/src/internal/fallback-subscriber.d.ts +0 -3
  73. package/src/internal/internals.d.ts +0 -105
  74. package/src/internal/lifecycle-state-manager.d.ts +0 -24
  75. package/src/internal/state-context-factory.d.ts +0 -17
  76. package/src/internal/state-factory.d.ts +0 -57
  77. package/src/internal/state-operations.d.ts +0 -21
  78. package/src/internal/state-operators.d.ts +0 -2
  79. package/src/internal/unhandled-rxjs-error-callback.d.ts +0 -2
  80. package/src/ivy/ivy-enabled-in-dev-mode.d.ts +0 -6
  81. package/src/module.d.ts +0 -13
  82. package/src/modules/ngxs-feature.module.d.ts +0 -10
  83. package/src/modules/ngxs-root.module.d.ts +0 -10
  84. package/src/ngxs-unhandled-error-handler.d.ts +0 -16
  85. package/src/operators/leave-ngxs.d.ts +0 -6
  86. package/src/operators/of-action.d.ts +0 -56
  87. package/src/plugin-manager.d.ts +0 -13
  88. package/src/plugin_api.d.ts +0 -1
  89. package/src/private_api.d.ts +0 -3
  90. package/src/public_api.d.ts +0 -23
  91. package/src/selectors/create-model-selector.d.ts +0 -10
  92. package/src/selectors/create-pick-selector.d.ts +0 -6
  93. package/src/selectors/create-property-selectors.d.ts +0 -5
  94. package/src/selectors/create-selector.d.ts +0 -19
  95. package/src/selectors/index.d.ts +0 -5
  96. package/src/selectors/private_api.d.ts +0 -7
  97. package/src/selectors/selector-checks.util.d.ts +0 -9
  98. package/src/selectors/selector-metadata.d.ts +0 -7
  99. package/src/selectors/selector-models.d.ts +0 -10
  100. package/src/selectors/selector-types.util.d.ts +0 -6
  101. package/src/selectors/selector-utils.d.ts +0 -9
  102. package/src/standalone-features/feature-providers.d.ts +0 -7
  103. package/src/standalone-features/index.d.ts +0 -4
  104. package/src/standalone-features/initializers.d.ts +0 -29
  105. package/src/standalone-features/plugin.d.ts +0 -17
  106. package/src/standalone-features/preboot.d.ts +0 -26
  107. package/src/standalone-features/provide-states.d.ts +0 -18
  108. package/src/standalone-features/provide-store.d.ts +0 -22
  109. package/src/standalone-features/root-providers.d.ts +0 -8
  110. package/src/store.d.ts +0 -60
  111. package/src/symbols.d.ts +0 -102
  112. package/src/utils/compose.d.ts +0 -23
  113. package/src/utils/create-dispatch-map.d.ts +0 -4
  114. package/src/utils/create-select-map.d.ts +0 -4
  115. package/src/utils/dispatch.d.ts +0 -2
  116. package/src/utils/freeze.d.ts +0 -5
  117. package/src/utils/public_api.d.ts +0 -4
  118. package/src/utils/select.d.ts +0 -16
  119. package/src/utils/store-validators.d.ts +0 -5
@@ -1,88 +0,0 @@
1
- import type { StateToken } from './state-token';
2
- export interface ɵPlainObject {
3
- [key: string]: any;
4
- }
5
- export interface ɵPlainObjectOf<T> {
6
- [key: string]: T;
7
- }
8
- export type ɵStateClass<T = any> = new (...args: any[]) => T;
9
- export declare const ɵMETA_KEY = "NGXS_META";
10
- export declare const ɵMETA_OPTIONS_KEY = "NGXS_OPTIONS_META";
11
- export declare const ɵSELECTOR_META_KEY = "NGXS_SELECTOR_META";
12
- export interface ɵStateToken<T, U> {
13
- new (name: ɵTokenName<T>): U;
14
- getName(): string;
15
- toString(): string;
16
- }
17
- type RequireGeneric<T, U> = T extends void ? 'You must provide a type parameter' : U;
18
- export type ɵTokenName<T> = string & RequireGeneric<T, string>;
19
- export type ɵExtractTokenType<P> = P extends StateToken<infer T> ? T : never;
20
- /**
21
- * Options that can be provided to the store.
22
- */
23
- export interface ɵStoreOptions<T> {
24
- /**
25
- * Name of the state. Required.
26
- */
27
- name: string | StateToken<T>;
28
- /**
29
- * Default values for the state. If not provided, uses empty object.
30
- */
31
- defaults?: T;
32
- /**
33
- * Sub states for the given state.
34
- *
35
- * @deprecated
36
- * Read the deprecation notice at this link: https://ngxs.io/deprecations/sub-states-deprecation.
37
- */
38
- children?: ɵStateClass[];
39
- }
40
- export interface ɵStateClassInternal<T = any, U = any> extends ɵStateClass<T> {
41
- [ɵMETA_KEY]?: ɵMetaDataModel;
42
- [ɵMETA_OPTIONS_KEY]?: ɵStoreOptions<U>;
43
- }
44
- export interface ɵMetaDataModel {
45
- name: string | null;
46
- actions: ɵPlainObjectOf<ɵActionHandlerMetaData[]>;
47
- defaults: any;
48
- path: string | null;
49
- makeRootSelector: ɵSelectorFactory | null;
50
- /** @deprecated */
51
- children?: ɵStateClassInternal[];
52
- }
53
- export interface ɵSelectorMetaDataModel {
54
- makeRootSelector: ɵSelectorFactory | null;
55
- originalFn: Function | null;
56
- containerClass: any;
57
- selectorName: string | null;
58
- getSelectorOptions: () => ɵSharedSelectorOptions;
59
- }
60
- export interface ɵSharedSelectorOptions {
61
- /**
62
- * @deprecated
63
- * Read the deprecation notice at this link: https://ngxs.io/deprecations/inject-container-state-deprecation.md.
64
- */
65
- injectContainerState?: boolean;
66
- suppressErrors?: boolean;
67
- }
68
- export interface ɵRuntimeSelectorContext {
69
- getStateGetter(key: any): (state: any) => any;
70
- getSelectorOptions(localOptions?: ɵSharedSelectorOptions): ɵSharedSelectorOptions;
71
- }
72
- export type ɵSelectFromRootState = (rootState: any) => any;
73
- export type ɵSelectorFactory = (runtimeContext: ɵRuntimeSelectorContext) => ɵSelectFromRootState;
74
- /**
75
- * Actions that can be provided in a action decorator.
76
- */
77
- export interface ɵActionOptions {
78
- /**
79
- * Cancel the previous uncompleted observable(s).
80
- */
81
- cancelUncompleted?: boolean;
82
- }
83
- export interface ɵActionHandlerMetaData {
84
- fn: string | symbol;
85
- options: ɵActionOptions;
86
- type: string;
87
- }
88
- export {};
@@ -1 +0,0 @@
1
- export declare function freshPlatform(fn: (done?: VoidFunction) => Promise<void>): () => Promise<void>;
@@ -1,8 +0,0 @@
1
- import { AfterViewInit, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class NgxsTestComponent implements OnInit, AfterViewInit {
4
- ngOnInit(): void;
5
- ngAfterViewInit(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxsTestComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<NgxsTestComponent, "app-root", never, {}, {}, never, never, false, never>;
8
- }
@@ -1,10 +0,0 @@
1
- import { ApplicationRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./ngxs-test.component";
4
- import * as i2 from "@angular/platform-browser";
5
- export declare class NgxsTestModule {
6
- static ngDoBootstrap(app: ApplicationRef): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxsTestModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxsTestModule, [typeof i1.NgxsTestComponent], [typeof i2.BrowserModule], never>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<NgxsTestModule>;
10
- }
@@ -1,7 +0,0 @@
1
- import { NgxsOptionsTesting, NgxsTesting } from './symbol';
2
- export declare class NgxsTestBed {
3
- static configureTestingStates(options: NgxsOptionsTesting): NgxsTesting;
4
- private static ngxsBootstrap;
5
- private static resetTestBed;
6
- private static createRootNode;
7
- }
@@ -1,4 +0,0 @@
1
- export type ConsoleRecord = [string, any[]];
2
- export type ConsoleRecorder = ConsoleRecord[];
3
- export declare function loggedError(message: string): ConsoleRecord;
4
- export declare function skipConsoleLogging<T extends (...args: any[]) => any>(fn: T, consoleRecorder?: ConsoleRecorder): ReturnType<T>;
@@ -1,14 +0,0 @@
1
- import { NgxsModuleOptions, Store } from '@ngxs/store';
2
- import { ModuleWithProviders } from '@angular/core';
3
- import { TestBedStatic } from '@angular/core/testing';
4
- import { ɵStateClass } from '@ngxs/store/internals';
5
- export interface NgxsOptionsTesting {
6
- states?: ɵStateClass[];
7
- ngxsOptions?: NgxsModuleOptions;
8
- imports?: ModuleWithProviders<any>[];
9
- before?: () => void;
10
- }
11
- export interface NgxsTesting {
12
- store: Store;
13
- getTestBed: TestBedStatic;
14
- }
@@ -1,5 +0,0 @@
1
- import { NoInfer, StateOperator } from './types';
2
- /**
3
- * @param items - Specific items to append to the end of an array
4
- */
5
- export declare function append<T>(items: NoInfer<T[]>): StateOperator<T[]>;
@@ -1,2 +0,0 @@
1
- import { NoInfer, StateOperator } from './types';
2
- export declare function compose<T>(...operators: NoInfer<StateOperator<T>[]>): StateOperator<T>;
@@ -1,10 +0,0 @@
1
- import { NoInfer, StateOperator } from './types';
2
- import { Predicate } from './utils';
3
- /**
4
- * @param condition - Condition can be a plain boolean value or a function,
5
- * that returns boolean, also this function can take a value as an argument
6
- * to which this state operator applies
7
- * @param trueOperatorOrValue - Any value or a state operator
8
- * @param elseOperatorOrValue - Any value or a state operator
9
- */
10
- export declare function iif<T>(condition: NoInfer<Predicate<T>> | boolean, trueOperatorOrValue: NoInfer<StateOperator<T> | T>, elseOperatorOrValue?: NoInfer<StateOperator<T> | T>): StateOperator<T>;
@@ -1,6 +0,0 @@
1
- import { NoInfer, StateOperator } from './types';
2
- /**
3
- * @param value - Value to insert
4
- * @param [beforePosition] - Specified index to insert value before, optional
5
- */
6
- export declare function insertItem<T>(value: NoInfer<T>, beforePosition?: number): StateOperator<T[]>;
@@ -1,7 +0,0 @@
1
- import { NoInfer, StateOperator } from './types';
2
- type NotUndefined<T> = T extends undefined ? never : T;
3
- export type ɵPatchSpec<T> = {
4
- [P in keyof T]?: T[P] | StateOperator<NotUndefined<T[P]>>;
5
- };
6
- export declare function patch<T extends Record<string, any>>(patchObject: NoInfer<ɵPatchSpec<T>>): StateOperator<T>;
7
- export {};
@@ -1,6 +0,0 @@
1
- import { NoInfer, StateOperator } from './types';
2
- import { Predicate } from './utils';
3
- /**
4
- * @param selector - index or predicate to remove an item from an array by
5
- */
6
- export declare function removeItem<T>(selector: number | NoInfer<Predicate<T>>): StateOperator<T[]>;
@@ -1,56 +0,0 @@
1
- type _NoInfer<T> = T extends infer S ? S : never;
2
- /**
3
- * Blocks the ability of the typescript inferrence engine to be able to use the provided type as part of
4
- * inferring any type parameters from this usage.
5
- * @example
6
- * Primarily used to wrap parameters of functions in order to prevent the TypeScript inferrence engine
7
- * from inferring a type parameter of the function from the value provided to this parameter.
8
- * This essentially blocks the Contravariance of the function (through its parameters) so that the
9
- * function type parameter is purely determined by the Covariant requirements of the function's return type.
10
- * This is key to creating `StateOperator`s that are typed based on their contextual usage and not on the arguments
11
- * provided to them. This is critical for type safety and intellisense for State Operators.
12
- * Here is an example of how this benefits a state operator:
13
- * ```ts
14
- * declare function append<T>(items: NoInfer<T[]>): StateOperator<T[]>;
15
- * declare function appendBad<T>(items: T[]): StateOperator<T[]>;
16
- *
17
- * interface AAA {
18
- * foo?: boolean;
19
- * bar?: boolean;
20
- * }
21
- *
22
- * // Works
23
- * // (T in append is correctly inferred as AAA)
24
- * patch<{ test: AAA[] }>({ test: append([{ foo: true }]) });
25
- *
26
- * // Incorrectly throws: Type 'AAA' is not assignable to type '{ foo: true; }'.ts(2322)
27
- * // (T in appendBad is incorrectly inferred as { foo: true; })
28
- * patch<{ test: AAA[] }>({ test: appendBad([{ foo: true }]) });
29
- * ```
30
- *
31
- */
32
- export type NoInfer<T> = T extends (infer O)[] ? _NoInfer<O>[] : _NoInfer<T>;
33
- /**
34
- * IMPORTANT NOTE: This should not be used externally to the library, rather
35
- * the exported type `ExistingState<T>` should be used instead.
36
- *
37
- * Used to convert a type to its readonly form. This can be given any type, from
38
- * primitives to objects or arrays that could already be readonly or not.
39
- * This does not apply the readonly construct to nested objects, but only to the top level type.
40
- */
41
- type ɵAsReadonly<T> = T extends Readonly<infer O> ? (O extends T ? Readonly<T> : T) : T;
42
- /**
43
- * Represents the existing state that is passed into a `StateOperator` which should
44
- * not be modified but will be used to build the new state returned by the `StateOperator`.
45
- */
46
- export type ExistingState<T> = T extends any ? ɵAsReadonly<T> : never;
47
- /**
48
- * This is a monotype unary function that is used to create a new state from an existing state.
49
- * A state operator is usually created by a function that is given some data
50
- * to integrate with the state and returns a state operator which integrates this data or instruction.
51
- *
52
- * In state management terminology this creator function is commonly referred to as a state operator
53
- * because it represents the operation to be performed. ie. `patch`, `append`, `insertItem`, `compose`, `iif`, etc.
54
- */
55
- export type StateOperator<T> = (existing: ExistingState<T>) => T;
56
- export {};
@@ -1,9 +0,0 @@
1
- import { NoInfer, StateOperator } from './types';
2
- import { Predicate } from './utils';
3
- /**
4
- * @param selector - Index of item in the array or a predicate function
5
- * that can be provided in `Array.prototype.findIndex`
6
- * @param operatorOrValue - New value under the `selector` index or a
7
- * function that can be applied to an existing value
8
- */
9
- export declare function updateItem<T>(selector: number | NoInfer<Predicate<T>>, operatorOrValue: NoInfer<T> | NoInfer<StateOperator<T>>): StateOperator<T[]>;
@@ -1,8 +0,0 @@
1
- import { StateOperator } from './types';
2
- export type Predicate<T = any> = (value: T | Readonly<T>) => boolean;
3
- export declare function isStateOperator<T>(value: T | StateOperator<T>): value is StateOperator<T>;
4
- export declare function isUndefined(value: any): value is undefined;
5
- export declare function isPredicate<T>(value: Predicate<T> | boolean | number): value is Predicate<T>;
6
- export declare function isNumber(value: any): value is number;
7
- export declare function invalidIndex(index: number): boolean;
8
- export declare function isNil<T>(value: T | null | undefined): value is null | undefined;
@@ -1,15 +0,0 @@
1
- import { ɵPlainObject } from '@ngxs/store/internals';
2
- /**
3
- * Init action
4
- */
5
- export declare class InitState {
6
- static readonly type = "@@INIT";
7
- }
8
- /**
9
- * Update action
10
- */
11
- export declare class UpdateState {
12
- readonly addedStates?: ɵPlainObject | undefined;
13
- static readonly type = "@@UPDATE_STATE";
14
- constructor(addedStates?: ɵPlainObject | undefined);
15
- }
@@ -1,13 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const NGXS_PLUGINS: InjectionToken<unknown>;
3
- export type NgxsPluginFn = (state: any, mutation: any, next: NgxsNextPluginFn) => any;
4
- export type NgxsNextPluginFn = (state: any, mutation: any) => any;
5
- /**
6
- * Plugin interface
7
- */
8
- export interface NgxsPlugin {
9
- /**
10
- * Handle the state/action before its submitted to the state handlers.
11
- */
12
- handle(state: any, action: any, next: NgxsNextPluginFn): any;
13
- }
@@ -1,29 +0,0 @@
1
- /**
2
- * Returns the type from an action instance/class.
3
- * @ignore
4
- */
5
- export declare function getActionTypeFromInstance(action: any): string | undefined;
6
- /**
7
- * Matches a action
8
- * @ignore
9
- */
10
- export declare function actionMatcher(action1: any): (action2: any) => boolean;
11
- /**
12
- * Set a deeply nested value. Example:
13
- *
14
- * setValue({ foo: { bar: { eat: false } } },
15
- * 'foo.bar.eat', true) //=> { foo: { bar: { eat: true } } }
16
- *
17
- * While it traverses it also creates new objects from top down.
18
- *
19
- * @ignore
20
- */
21
- export declare const setValue: (obj: any, prop: string, val: any) => any;
22
- /**
23
- * Get a deeply nested value. Example:
24
- *
25
- * getValue({ foo: bar: [] }, 'foo.bar') //=> []
26
- *
27
- * @ignore
28
- */
29
- export declare const getValue: (obj: any, prop: string) => any;
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { ActionsSchema } from './actions.schema';
3
- export declare function actions(options: ActionsSchema): Rule;
@@ -1,4 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { NormalizedNgxsPackageSchema } from './ng-add.factory';
3
- export declare function addDeclarationToStandaloneApp(options: NormalizedNgxsPackageSchema): Rule;
4
- export declare function addDeclarationToNonStandaloneApp(options: NormalizedNgxsPackageSchema): Rule;
@@ -1,9 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { LIBRARIES } from '../utils/common/lib.config';
3
- import { NgxsPackageSchema } from './ng-add.schema';
4
- export type NormalizedNgxsPackageSchema = {
5
- skipInstall: boolean;
6
- plugins: LIBRARIES[];
7
- project: string;
8
- };
9
- export declare function ngAdd(options: NgxsPackageSchema): Rule;
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { StarterKitSchema } from './starter-kit.schema';
3
- export declare function starterKit(options: StarterKitSchema): Rule;
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { StateSchema } from './state.schema';
3
- export declare function state(options: StateSchema): Rule;
@@ -1,3 +0,0 @@
1
- import { Rule } from '@angular-devkit/schematics';
2
- import { StoreSchema } from './store.schema';
3
- export declare function store(options: StoreSchema): Rule;
@@ -1,10 +0,0 @@
1
- export declare enum LIBRARIES {
2
- DEVTOOLS = "@ngxs/devtools-plugin",
3
- FORM = "@ngxs/form-plugin",
4
- HMR = "@ngxs/hmr-plugin",
5
- LOGGER = "@ngxs/logger-plugin",
6
- ROUTER = "@ngxs/router-plugin",
7
- STORAGE = "@ngxs/storage-plugin",
8
- STORE = "@ngxs/store",
9
- WEBSOCKET = "@ngxs/websocket-plugin"
10
- }
@@ -1,3 +0,0 @@
1
- export declare const PACKAGE_JSON = "package.json";
2
- export declare const ANGULAR_JSON = "angular.json";
3
- export declare const TSCONFIG_SPEC_JSON = "src/tsconfig.spec.json";
@@ -1 +0,0 @@
1
- export declare function isEmpty(value: string | undefined): boolean;
@@ -1,119 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- export interface AppConfig {
3
- /**
4
- * Name of the app.
5
- */
6
- name?: string;
7
- /**
8
- * Directory where app files are placed.
9
- */
10
- appRoot?: string;
11
- /**
12
- * The root directory of the app.
13
- */
14
- root?: string;
15
- /**
16
- * The output directory for build results.
17
- */
18
- outDir?: string;
19
- /**
20
- * List of application assets.
21
- */
22
- assets?: (string | {
23
- /**
24
- * The pattern to match.
25
- */
26
- glob?: string;
27
- /**
28
- * The dir to search within.
29
- */
30
- input?: string;
31
- /**
32
- * The output path (relative to the outDir).
33
- */
34
- output?: string;
35
- })[];
36
- /**
37
- * URL where files will be deployed.
38
- */
39
- deployUrl?: string;
40
- /**
41
- * Base url for the application being built.
42
- */
43
- baseHref?: string;
44
- /**
45
- * The runtime platform of the app.
46
- */
47
- platform?: 'browser' | 'server';
48
- /**
49
- * The name of the start HTML file.
50
- */
51
- index?: string;
52
- /**
53
- * The name of the main entry-point file.
54
- */
55
- main?: string;
56
- /**
57
- * The name of the polyfills file.
58
- */
59
- polyfills?: string;
60
- /**
61
- * The name of the test entry-point file.
62
- */
63
- test?: string;
64
- /**
65
- * The name of the TypeScript configuration file.
66
- */
67
- tsconfig?: string;
68
- /**
69
- * The name of the TypeScript configuration file for unit tests.
70
- */
71
- testTsconfig?: string;
72
- /**
73
- * The prefix to apply to generated selectors.
74
- */
75
- prefix?: string;
76
- /**
77
- * Experimental support for a service worker from @angular/service-worker.
78
- */
79
- serviceWorker?: boolean;
80
- /**
81
- * Global styles to be included in the build.
82
- */
83
- styles?: (string | {
84
- input?: string;
85
- [name: string]: any;
86
- })[];
87
- /**
88
- * Options to pass to style preprocessors
89
- */
90
- stylePreprocessorOptions?: {
91
- /**
92
- * Paths to include. Paths will be resolved to project root.
93
- */
94
- includePaths?: string[];
95
- };
96
- /**
97
- * Global scripts to be included in the build.
98
- */
99
- scripts?: (string | {
100
- input: string;
101
- [name: string]: any;
102
- })[];
103
- /**
104
- * Source file for environment config.
105
- */
106
- environmentSource?: string;
107
- /**
108
- * Name and corresponding file for environment config.
109
- */
110
- environments?: {
111
- [name: string]: any;
112
- };
113
- appShell?: {
114
- app: string;
115
- route: string;
116
- };
117
- }
118
- export declare function getWorkspacePath(host: Tree): string | undefined;
119
- export declare function getWorkspace(host: Tree): any;
@@ -1,4 +0,0 @@
1
- import { Rule, Source } from '@angular-devkit/schematics';
2
- export declare function generateFiles(srcFolder: Source, target: string, substitutions: {
3
- [k: string]: any;
4
- }, generateSpecs?: boolean): Rule;
@@ -1,7 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- export interface PackageToJsonInterface {
3
- host: Tree;
4
- type: string;
5
- pkg: string;
6
- version: string;
7
- }
@@ -1,11 +0,0 @@
1
- import { Tree } from '@angular-devkit/schematics';
2
- interface BaseOptions {
3
- name: string;
4
- path?: string;
5
- project?: string;
6
- }
7
- export declare function normalizeBaseOptions<T extends BaseOptions>(host: Tree, options: T): T & Required<BaseOptions>;
8
- export declare function normalizePath(path: string | undefined): string;
9
- /** Returns `value` if it's "true" | "false" and default value otherwise */
10
- export declare function normalizeOptionalBoolean(value: boolean | undefined, defaultValue: boolean): boolean;
11
- export {};
@@ -1,20 +0,0 @@
1
- import { TargetDefinition } from '@schematics/angular/utility/workspace';
2
- import { Tree } from '@angular-devkit/schematics';
3
- export interface WorkspaceProject {
4
- name: string;
5
- root: string;
6
- projectType: string;
7
- architect: {
8
- [key: string]: TargetDefinition;
9
- };
10
- }
11
- export declare function getProject(host: Tree, project?: string): WorkspaceProject | null;
12
- export declare function getProjectData(host: Tree, options: {
13
- project?: string | undefined;
14
- path?: string | undefined;
15
- }): {
16
- project: string;
17
- path: string;
18
- } | null;
19
- export declare function isLib(host: Tree, project?: string): boolean;
20
- export declare function getProjectMainFile(host: Tree, project?: string): string | null;
@@ -1,12 +0,0 @@
1
- import { type OnDestroy } from '@angular/core';
2
- import type { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export type ActionHandlerFn = (action: any) => void | Promise<void> | Observable<unknown>;
5
- export declare class NgxsActionRegistry implements OnDestroy {
6
- private readonly _actionTypeToHandlersMap;
7
- ngOnDestroy(): void;
8
- get(type: string): Set<ActionHandlerFn> | undefined;
9
- register(type: string, handler: ActionHandlerFn): () => void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxsActionRegistry, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<NgxsActionRegistry>;
12
- }
@@ -1,7 +0,0 @@
1
- export interface ActionDef<TArgs extends any[] = any[], TReturn = any> {
2
- type: string;
3
- new (...args: TArgs): TReturn;
4
- }
5
- export type ActionType = ActionDef | {
6
- type: string;
7
- };
@@ -1,39 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { ɵOrderedSubject } from '@ngxs/store/internals';
3
- import { Observable, Subject } from 'rxjs';
4
- import { InternalNgxsExecutionStrategy } from './execution/internal-ngxs-execution-strategy';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Status of a dispatched action
8
- */
9
- export declare const enum ActionStatus {
10
- Dispatched = "DISPATCHED",
11
- Successful = "SUCCESSFUL",
12
- Canceled = "CANCELED",
13
- Errored = "ERRORED"
14
- }
15
- export interface ActionContext<T = any> {
16
- status: ActionStatus;
17
- action: T;
18
- error?: Error;
19
- }
20
- /**
21
- * Internal Action stream that is emitted anytime an action is dispatched.
22
- */
23
- export declare class InternalActions extends ɵOrderedSubject<ActionContext> implements OnDestroy {
24
- readonly dispatched$: Subject<ActionContext<any>>;
25
- constructor();
26
- ngOnDestroy(): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<InternalActions, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<InternalActions>;
29
- }
30
- /**
31
- * Action stream that is emitted anytime an action is dispatched.
32
- *
33
- * You can listen to this in services to react without stores.
34
- */
35
- export declare class Actions extends Observable<ActionContext> {
36
- constructor(internalActions$: InternalActions, internalExecutionStrategy: InternalNgxsExecutionStrategy);
37
- static ɵfac: i0.ɵɵFactoryDeclaration<Actions, never>;
38
- static ɵprov: i0.ɵɵInjectableDeclaration<Actions>;
39
- }
@@ -1,13 +0,0 @@
1
- import { ɵPlainObject } from '@ngxs/store/internals';
2
- export declare function throwStateNameError(name: string): never;
3
- export declare function throwStateNamePropertyError(): never;
4
- export declare function throwStateUniqueError(current: string, newName: string, oldName: string): never;
5
- export declare function throwStateDecoratorError(name: string): never;
6
- export declare function throwActionDecoratorError(): never;
7
- export declare function throwSelectorDecoratorError(): never;
8
- export declare function getZoneWarningMessage(): string;
9
- export declare function getUndecoratedStateWithInjectableWarningMessage(name: string): string;
10
- export declare function getInvalidInitializationOrderMessage(addedStates?: ɵPlainObject): string;
11
- export declare function throwSelectFactoryNotConnectedError(): never;
12
- export declare function throwPatchingArrayError(): never;
13
- export declare function throwPatchingPrimitiveError(): never;