@angular/core 15.2.2 → 15.2.4

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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.2.2
2
+ * @license Angular v15.2.4
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -792,6 +792,9 @@ export declare abstract class ChangeDetectorRef {
792
792
  abstract reattach(): void;
793
793
  }
794
794
 
795
+ declare interface ChangeDetectorRefInterface extends ChangeDetectorRef {
796
+ }
797
+
795
798
  declare const CHILD_HEAD = 13;
796
799
 
797
800
  declare const CHILD_TAIL = 14;
@@ -1235,6 +1238,101 @@ declare interface ComponentDefFeature {
1235
1238
  ngInherit?: true;
1236
1239
  }
1237
1240
 
1241
+ declare interface ComponentDefinition<T> extends Omit<DirectiveDefinition<T>, 'features'> {
1242
+ /**
1243
+ * The number of nodes, local refs, and pipes in this component template.
1244
+ *
1245
+ * Used to calculate the length of this component's LView array, so we
1246
+ * can pre-fill the array and set the binding start index.
1247
+ */
1248
+ decls: number;
1249
+ /**
1250
+ * The number of bindings in this component template (including pure fn bindings).
1251
+ *
1252
+ * Used to calculate the length of this component's LView array, so we
1253
+ * can pre-fill the array and set the host binding start index.
1254
+ */
1255
+ vars: number;
1256
+ /**
1257
+ * Template function use for rendering DOM.
1258
+ *
1259
+ * This function has following structure.
1260
+ *
1261
+ * ```
1262
+ * function Template<T>(ctx:T, creationMode: boolean) {
1263
+ * if (creationMode) {
1264
+ * // Contains creation mode instructions.
1265
+ * }
1266
+ * // Contains binding update instructions
1267
+ * }
1268
+ * ```
1269
+ *
1270
+ * Common instructions are:
1271
+ * Creation mode instructions:
1272
+ * - `elementStart`, `elementEnd`
1273
+ * - `text`
1274
+ * - `container`
1275
+ * - `listener`
1276
+ *
1277
+ * Binding update instructions:
1278
+ * - `bind`
1279
+ * - `elementAttribute`
1280
+ * - `elementProperty`
1281
+ * - `elementClass`
1282
+ * - `elementStyle`
1283
+ *
1284
+ */
1285
+ template: ComponentTemplate<T>;
1286
+ /**
1287
+ * Constants for the nodes in the component's view.
1288
+ * Includes attribute arrays, local definition arrays etc.
1289
+ */
1290
+ consts?: TConstantsOrFactory;
1291
+ /**
1292
+ * An array of `ngContent[selector]` values that were found in the template.
1293
+ */
1294
+ ngContentSelectors?: string[];
1295
+ /**
1296
+ * A list of optional features to apply.
1297
+ *
1298
+ * See: {@link NgOnChangesFeature}, {@link ProvidersFeature}
1299
+ */
1300
+ features?: ComponentDefFeature[];
1301
+ /**
1302
+ * Defines template and style encapsulation options available for Component's {@link Component}.
1303
+ */
1304
+ encapsulation?: ViewEncapsulation;
1305
+ /**
1306
+ * Defines arbitrary developer-defined data to be stored on a renderer instance.
1307
+ * This is useful for renderers that delegate to other renderers.
1308
+ *
1309
+ * see: animation
1310
+ */
1311
+ data?: {
1312
+ [kind: string]: any;
1313
+ };
1314
+ /**
1315
+ * A set of styles that the component needs to be present for component to render correctly.
1316
+ */
1317
+ styles?: string[];
1318
+ /**
1319
+ * The strategy that the default change detector uses to detect changes.
1320
+ * When set, takes effect the next time change detection is triggered.
1321
+ */
1322
+ changeDetection?: ChangeDetectionStrategy;
1323
+ /**
1324
+ * Registry of directives, components, and pipes that may be found in this component's view.
1325
+ *
1326
+ * This property is either an array of types or a function that returns the array of types. This
1327
+ * function may be necessary to support forward declarations.
1328
+ */
1329
+ dependencies?: TypeOrFactory<DependencyTypeList>;
1330
+ /**
1331
+ * The set of schemas that declare elements to be allowed in the component's template.
1332
+ */
1333
+ schemas?: SchemaMetadata[] | null;
1334
+ }
1335
+
1238
1336
  /**
1239
1337
  * Base class for a factory that can create a component dynamically.
1240
1338
  * Instantiate a factory for a given type of component with `resolveComponentFactory()`.
@@ -2469,6 +2567,141 @@ declare interface DirectiveDefFeature {
2469
2567
  ngInherit?: true;
2470
2568
  }
2471
2569
 
2570
+ declare interface DirectiveDefinition<T> {
2571
+ /**
2572
+ * Directive type, needed to configure the injector.
2573
+ */
2574
+ type: Type<T>;
2575
+ /** The selectors that will be used to match nodes to this directive. */
2576
+ selectors?: ɵCssSelectorList;
2577
+ /**
2578
+ * A map of input names.
2579
+ *
2580
+ * The format is in: `{[actualPropertyName: string]:(string|[string, string])}`.
2581
+ *
2582
+ * Given:
2583
+ * ```
2584
+ * class MyComponent {
2585
+ * @Input()
2586
+ * publicInput1: string;
2587
+ *
2588
+ * @Input('publicInput2')
2589
+ * declaredInput2: string;
2590
+ * }
2591
+ * ```
2592
+ *
2593
+ * is described as:
2594
+ * ```
2595
+ * {
2596
+ * publicInput1: 'publicInput1',
2597
+ * declaredInput2: ['declaredInput2', 'publicInput2'],
2598
+ * }
2599
+ * ```
2600
+ *
2601
+ * Which the minifier may translate to:
2602
+ * ```
2603
+ * {
2604
+ * minifiedPublicInput1: 'publicInput1',
2605
+ * minifiedDeclaredInput2: [ 'publicInput2', 'declaredInput2'],
2606
+ * }
2607
+ * ```
2608
+ *
2609
+ * This allows the render to re-construct the minified, public, and declared names
2610
+ * of properties.
2611
+ *
2612
+ * NOTE:
2613
+ * - Because declared and public name are usually same we only generate the array
2614
+ * `['declared', 'public']` format when they differ.
2615
+ * - The reason why this API and `outputs` API is not the same is that `NgOnChanges` has
2616
+ * inconsistent behavior in that it uses declared names rather than minified or public. For
2617
+ * this reason `NgOnChanges` will be deprecated and removed in future version and this
2618
+ * API will be simplified to be consistent with `output`.
2619
+ */
2620
+ inputs?: {
2621
+ [P in keyof T]?: string | [string, string];
2622
+ };
2623
+ /**
2624
+ * A map of output names.
2625
+ *
2626
+ * The format is in: `{[actualPropertyName: string]:string}`.
2627
+ *
2628
+ * Which the minifier may translate to: `{[minifiedPropertyName: string]:string}`.
2629
+ *
2630
+ * This allows the render to re-construct the minified and non-minified names
2631
+ * of properties.
2632
+ */
2633
+ outputs?: {
2634
+ [P in keyof T]?: string;
2635
+ };
2636
+ /**
2637
+ * A list of optional features to apply.
2638
+ *
2639
+ * See: {@link NgOnChangesFeature}, {@link ProvidersFeature}, {@link InheritDefinitionFeature}
2640
+ */
2641
+ features?: DirectiveDefFeature[];
2642
+ /**
2643
+ * Function executed by the parent template to allow child directive to apply host bindings.
2644
+ */
2645
+ hostBindings?: HostBindingsFunction<T>;
2646
+ /**
2647
+ * The number of bindings in this directive `hostBindings` (including pure fn bindings).
2648
+ *
2649
+ * Used to calculate the length of the component's LView array, so we
2650
+ * can pre-fill the array and set the host binding start index.
2651
+ */
2652
+ hostVars?: number;
2653
+ /**
2654
+ * Assign static attribute values to a host element.
2655
+ *
2656
+ * This property will assign static attribute values as well as class and style
2657
+ * values to a host element. Since attribute values can consist of different types of values,
2658
+ * the `hostAttrs` array must include the values in the following format:
2659
+ *
2660
+ * attrs = [
2661
+ * // static attributes (like `title`, `name`, `id`...)
2662
+ * attr1, value1, attr2, value,
2663
+ *
2664
+ * // a single namespace value (like `x:id`)
2665
+ * NAMESPACE_MARKER, namespaceUri1, name1, value1,
2666
+ *
2667
+ * // another single namespace value (like `x:name`)
2668
+ * NAMESPACE_MARKER, namespaceUri2, name2, value2,
2669
+ *
2670
+ * // a series of CSS classes that will be applied to the element (no spaces)
2671
+ * CLASSES_MARKER, class1, class2, class3,
2672
+ *
2673
+ * // a series of CSS styles (property + value) that will be applied to the element
2674
+ * STYLES_MARKER, prop1, value1, prop2, value2
2675
+ * ]
2676
+ *
2677
+ * All non-class and non-style attributes must be defined at the start of the list
2678
+ * first before all class and style values are set. When there is a change in value
2679
+ * type (like when classes and styles are introduced) a marker must be used to separate
2680
+ * the entries. The marker values themselves are set via entries found in the
2681
+ * [AttributeMarker] enum.
2682
+ */
2683
+ hostAttrs?: TAttributes;
2684
+ /**
2685
+ * Function to create instances of content queries associated with a given directive.
2686
+ */
2687
+ contentQueries?: ContentQueriesFunction<T>;
2688
+ /**
2689
+ * Additional set of instructions specific to view query processing. This could be seen as a
2690
+ * set of instructions to be inserted into the template function.
2691
+ */
2692
+ viewQuery?: ViewQueriesFunction<T> | null;
2693
+ /**
2694
+ * Defines the name that can be used in the template to assign this directive to a variable.
2695
+ *
2696
+ * See: {@link Directive.exportAs}
2697
+ */
2698
+ exportAs?: string[];
2699
+ /**
2700
+ * Whether this directive/component is standalone.
2701
+ */
2702
+ standalone?: boolean;
2703
+ }
2704
+
2472
2705
  declare type DirectiveDefList = (ɵDirectiveDef<any> | ɵComponentDef<any>)[];
2473
2706
 
2474
2707
  /**
@@ -5054,6 +5287,12 @@ export declare interface ModuleWithProviders<T> {
5054
5287
 
5055
5288
  declare const MOVED_VIEWS = 9;
5056
5289
 
5290
+ declare type Mutable<T extends {
5291
+ [x: string]: any;
5292
+ }, K extends string> = {
5293
+ [P in K]: T[P];
5294
+ };
5295
+
5057
5296
  declare const NATIVE = 7;
5058
5297
 
5059
5298
  declare const NEXT = 4;
@@ -9427,9 +9666,6 @@ declare enum ViewEncapsulation_2 {
9427
9666
  ShadowDom = 3
9428
9667
  }
9429
9668
 
9430
- declare interface viewEngine_ChangeDetectorRef_interface extends ChangeDetectorRef {
9431
- }
9432
-
9433
9669
  /**
9434
9670
  * Definition of what a view queries function should look like.
9435
9671
  */
@@ -10918,7 +11154,7 @@ export declare function ɵunwrapSafeValue(value: ɵSafeValue): string;
10918
11154
 
10919
11155
  export declare function ɵunwrapSafeValue<T>(value: T): T;
10920
11156
 
10921
- export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef, viewEngine_ChangeDetectorRef_interface {
11157
+ export declare class ɵViewRef<T> implements EmbeddedViewRef<T>, InternalViewRef, ChangeDetectorRefInterface {
10922
11158
  /**
10923
11159
  * This represents the `LView` associated with the point where `ChangeDetectorRef` was
10924
11160
  * requested.
@@ -11832,7 +12068,7 @@ export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any
11832
12068
  *
11833
12069
  * # Example
11834
12070
  * ```
11835
- * class MyDirective {
12071
+ * class MyComponent {
11836
12072
  * // Generated by Angular Template Compiler
11837
12073
  * // [Symbol] syntax will not be supported by TypeScript until v2.7
11838
12074
  * static ɵcmp = defineComponent({
@@ -11842,230 +12078,7 @@ export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any
11842
12078
  * ```
11843
12079
  * @codeGenApi
11844
12080
  */
11845
- export declare function ɵɵdefineComponent<T>(componentDefinition: {
11846
- /**
11847
- * Directive type, needed to configure the injector.
11848
- */
11849
- type: Type<T>;
11850
- /** The selectors that will be used to match nodes to this component. */
11851
- selectors?: ɵCssSelectorList;
11852
- /**
11853
- * The number of nodes, local refs, and pipes in this component template.
11854
- *
11855
- * Used to calculate the length of this component's LView array, so we
11856
- * can pre-fill the array and set the binding start index.
11857
- */
11858
- decls: number;
11859
- /**
11860
- * The number of bindings in this component template (including pure fn bindings).
11861
- *
11862
- * Used to calculate the length of this component's LView array, so we
11863
- * can pre-fill the array and set the host binding start index.
11864
- */
11865
- vars: number;
11866
- /**
11867
- * A map of input names.
11868
- *
11869
- * The format is in: `{[actualPropertyName: string]:(string|[string, string])}`.
11870
- *
11871
- * Given:
11872
- * ```
11873
- * class MyComponent {
11874
- * @Input()
11875
- * publicInput1: string;
11876
- *
11877
- * @Input('publicInput2')
11878
- * declaredInput2: string;
11879
- * }
11880
- * ```
11881
- *
11882
- * is described as:
11883
- * ```
11884
- * {
11885
- * publicInput1: 'publicInput1',
11886
- * declaredInput2: ['publicInput2', 'declaredInput2'],
11887
- * }
11888
- * ```
11889
- *
11890
- * Which the minifier may translate to:
11891
- * ```
11892
- * {
11893
- * minifiedPublicInput1: 'publicInput1',
11894
- * minifiedDeclaredInput2: ['publicInput2', 'declaredInput2'],
11895
- * }
11896
- * ```
11897
- *
11898
- * This allows the render to re-construct the minified, public, and declared names
11899
- * of properties.
11900
- *
11901
- * NOTE:
11902
- * - Because declared and public name are usually same we only generate the array
11903
- * `['public', 'declared']` format when they differ.
11904
- * - The reason why this API and `outputs` API is not the same is that `NgOnChanges` has
11905
- * inconsistent behavior in that it uses declared names rather than minified or public. For
11906
- * this reason `NgOnChanges` will be deprecated and removed in future version and this
11907
- * API will be simplified to be consistent with `output`.
11908
- */
11909
- inputs?: {
11910
- [P in keyof T]?: string | [string, string];
11911
- };
11912
- /**
11913
- * A map of output names.
11914
- *
11915
- * The format is in: `{[actualPropertyName: string]:string}`.
11916
- *
11917
- * Which the minifier may translate to: `{[minifiedPropertyName: string]:string}`.
11918
- *
11919
- * This allows the render to re-construct the minified and non-minified names
11920
- * of properties.
11921
- */
11922
- outputs?: {
11923
- [P in keyof T]?: string;
11924
- };
11925
- /**
11926
- * Function executed by the parent template to allow child directive to apply host bindings.
11927
- */
11928
- hostBindings?: HostBindingsFunction<T>;
11929
- /**
11930
- * The number of bindings in this directive `hostBindings` (including pure fn bindings).
11931
- *
11932
- * Used to calculate the length of the component's LView array, so we
11933
- * can pre-fill the array and set the host binding start index.
11934
- */
11935
- hostVars?: number;
11936
- /**
11937
- * Assign static attribute values to a host element.
11938
- *
11939
- * This property will assign static attribute values as well as class and style
11940
- * values to a host element. Since attribute values can consist of different types of values, the
11941
- * `hostAttrs` array must include the values in the following format:
11942
- *
11943
- * attrs = [
11944
- * // static attributes (like `title`, `name`, `id`...)
11945
- * attr1, value1, attr2, value,
11946
- *
11947
- * // a single namespace value (like `x:id`)
11948
- * NAMESPACE_MARKER, namespaceUri1, name1, value1,
11949
- *
11950
- * // another single namespace value (like `x:name`)
11951
- * NAMESPACE_MARKER, namespaceUri2, name2, value2,
11952
- *
11953
- * // a series of CSS classes that will be applied to the element (no spaces)
11954
- * CLASSES_MARKER, class1, class2, class3,
11955
- *
11956
- * // a series of CSS styles (property + value) that will be applied to the element
11957
- * STYLES_MARKER, prop1, value1, prop2, value2
11958
- * ]
11959
- *
11960
- * All non-class and non-style attributes must be defined at the start of the list
11961
- * first before all class and style values are set. When there is a change in value
11962
- * type (like when classes and styles are introduced) a marker must be used to separate
11963
- * the entries. The marker values themselves are set via entries found in the
11964
- * [AttributeMarker] enum.
11965
- */
11966
- hostAttrs?: TAttributes;
11967
- /**
11968
- * Function to create instances of content queries associated with a given directive.
11969
- */
11970
- contentQueries?: ContentQueriesFunction<T>;
11971
- /**
11972
- * Defines the name that can be used in the template to assign this directive to a variable.
11973
- *
11974
- * See: {@link Directive.exportAs}
11975
- */
11976
- exportAs?: string[];
11977
- /**
11978
- * Template function use for rendering DOM.
11979
- *
11980
- * This function has following structure.
11981
- *
11982
- * ```
11983
- * function Template<T>(ctx:T, creationMode: boolean) {
11984
- * if (creationMode) {
11985
- * // Contains creation mode instructions.
11986
- * }
11987
- * // Contains binding update instructions
11988
- * }
11989
- * ```
11990
- *
11991
- * Common instructions are:
11992
- * Creation mode instructions:
11993
- * - `elementStart`, `elementEnd`
11994
- * - `text`
11995
- * - `container`
11996
- * - `listener`
11997
- *
11998
- * Binding update instructions:
11999
- * - `bind`
12000
- * - `elementAttribute`
12001
- * - `elementProperty`
12002
- * - `elementClass`
12003
- * - `elementStyle`
12004
- *
12005
- */
12006
- template: ComponentTemplate<T>;
12007
- /**
12008
- * Constants for the nodes in the component's view.
12009
- * Includes attribute arrays, local definition arrays etc.
12010
- */
12011
- consts?: TConstantsOrFactory;
12012
- /**
12013
- * An array of `ngContent[selector]` values that were found in the template.
12014
- */
12015
- ngContentSelectors?: string[];
12016
- /**
12017
- * Additional set of instructions specific to view query processing. This could be seen as a
12018
- * set of instruction to be inserted into the template function.
12019
- *
12020
- * Query-related instructions need to be pulled out to a specific function as a timing of
12021
- * execution is different as compared to all other instructions (after change detection hooks but
12022
- * before view hooks).
12023
- */
12024
- viewQuery?: ViewQueriesFunction<T> | null;
12025
- /**
12026
- * A list of optional features to apply.
12027
- *
12028
- * See: {@link NgOnChangesFeature}, {@link ProvidersFeature}
12029
- */
12030
- features?: ComponentDefFeature[];
12031
- /**
12032
- * Defines template and style encapsulation options available for Component's {@link Component}.
12033
- */
12034
- encapsulation?: ViewEncapsulation;
12035
- /**
12036
- * Defines arbitrary developer-defined data to be stored on a renderer instance.
12037
- * This is useful for renderers that delegate to other renderers.
12038
- *
12039
- * see: animation
12040
- */
12041
- data?: {
12042
- [kind: string]: any;
12043
- };
12044
- /**
12045
- * A set of styles that the component needs to be present for component to render correctly.
12046
- */
12047
- styles?: string[];
12048
- /**
12049
- * The strategy that the default change detector uses to detect changes.
12050
- * When set, takes effect the next time change detection is triggered.
12051
- */
12052
- changeDetection?: ChangeDetectionStrategy;
12053
- /**
12054
- * Registry of directives, components, and pipes that may be found in this component's view.
12055
- *
12056
- * This property is either an array of types or a function that returns the array of types. This
12057
- * function may be necessary to support forward declarations.
12058
- */
12059
- dependencies?: TypeOrFactory<DependencyTypeList>;
12060
- /**
12061
- * The set of schemas that declare elements to be allowed in the component's template.
12062
- */
12063
- schemas?: SchemaMetadata[] | null;
12064
- /**
12065
- * Whether this directive/component is standalone.
12066
- */
12067
- standalone?: boolean;
12068
- }): unknown;
12081
+ export declare function ɵɵdefineComponent<T>(componentDefinition: ComponentDefinition<T>): Mutable<ɵComponentDef<any>, keyof ɵComponentDef<any>>;
12069
12082
 
12070
12083
  /**
12071
12084
  * Create a directive definition object.
@@ -12083,132 +12096,7 @@ export declare function ɵɵdefineComponent<T>(componentDefinition: {
12083
12096
  *
12084
12097
  * @codeGenApi
12085
12098
  */
12086
- export declare const ɵɵdefineDirective: <T>(directiveDefinition: {
12087
- /**
12088
- * Directive type, needed to configure the injector.
12089
- */
12090
- type: Type<T>;
12091
- /** The selectors that will be used to match nodes to this directive. */
12092
- selectors?: ɵCssSelectorList | undefined;
12093
- /**
12094
- * A map of input names.
12095
- *
12096
- * The format is in: `{[actualPropertyName: string]:(string|[string, string])}`.
12097
- *
12098
- * Given:
12099
- * ```
12100
- * class MyComponent {
12101
- * @Input()
12102
- * publicInput1: string;
12103
- *
12104
- * @Input('publicInput2')
12105
- * declaredInput2: string;
12106
- * }
12107
- * ```
12108
- *
12109
- * is described as:
12110
- * ```
12111
- * {
12112
- * publicInput1: 'publicInput1',
12113
- * declaredInput2: ['declaredInput2', 'publicInput2'],
12114
- * }
12115
- * ```
12116
- *
12117
- * Which the minifier may translate to:
12118
- * ```
12119
- * {
12120
- * minifiedPublicInput1: 'publicInput1',
12121
- * minifiedDeclaredInput2: [ 'publicInput2', 'declaredInput2'],
12122
- * }
12123
- * ```
12124
- *
12125
- * This allows the render to re-construct the minified, public, and declared names
12126
- * of properties.
12127
- *
12128
- * NOTE:
12129
- * - Because declared and public name are usually same we only generate the array
12130
- * `['declared', 'public']` format when they differ.
12131
- * - The reason why this API and `outputs` API is not the same is that `NgOnChanges` has
12132
- * inconsistent behavior in that it uses declared names rather than minified or public. For
12133
- * this reason `NgOnChanges` will be deprecated and removed in future version and this
12134
- * API will be simplified to be consistent with `output`.
12135
- */
12136
- inputs?: { [P in keyof T]?: string | [string, string] | undefined; } | undefined;
12137
- /**
12138
- * A map of output names.
12139
- *
12140
- * The format is in: `{[actualPropertyName: string]:string}`.
12141
- *
12142
- * Which the minifier may translate to: `{[minifiedPropertyName: string]:string}`.
12143
- *
12144
- * This allows the render to re-construct the minified and non-minified names
12145
- * of properties.
12146
- */
12147
- outputs?: { [P_1 in keyof T]?: string | undefined; } | undefined;
12148
- /**
12149
- * A list of optional features to apply.
12150
- *
12151
- * See: {@link NgOnChangesFeature}, {@link ProvidersFeature}, {@link InheritDefinitionFeature}
12152
- */
12153
- features?: DirectiveDefFeature[] | undefined;
12154
- /**
12155
- * Function executed by the parent template to allow child directive to apply host bindings.
12156
- */
12157
- hostBindings?: HostBindingsFunction<T> | undefined;
12158
- /**
12159
- * The number of bindings in this directive `hostBindings` (including pure fn bindings).
12160
- *
12161
- * Used to calculate the length of the component's LView array, so we
12162
- * can pre-fill the array and set the host binding start index.
12163
- */
12164
- hostVars?: number | undefined;
12165
- /**
12166
- * Assign static attribute values to a host element.
12167
- *
12168
- * This property will assign static attribute values as well as class and style
12169
- * values to a host element. Since attribute values can consist of different types of values,
12170
- * the `hostAttrs` array must include the values in the following format:
12171
- *
12172
- * attrs = [
12173
- * // static attributes (like `title`, `name`, `id`...)
12174
- * attr1, value1, attr2, value,
12175
- *
12176
- * // a single namespace value (like `x:id`)
12177
- * NAMESPACE_MARKER, namespaceUri1, name1, value1,
12178
- *
12179
- * // another single namespace value (like `x:name`)
12180
- * NAMESPACE_MARKER, namespaceUri2, name2, value2,
12181
- *
12182
- * // a series of CSS classes that will be applied to the element (no spaces)
12183
- * CLASSES_MARKER, class1, class2, class3,
12184
- *
12185
- * // a series of CSS styles (property + value) that will be applied to the element
12186
- * STYLES_MARKER, prop1, value1, prop2, value2
12187
- * ]
12188
- *
12189
- * All non-class and non-style attributes must be defined at the start of the list
12190
- * first before all class and style values are set. When there is a change in value
12191
- * type (like when classes and styles are introduced) a marker must be used to separate
12192
- * the entries. The marker values themselves are set via entries found in the
12193
- * [AttributeMarker] enum.
12194
- */
12195
- hostAttrs?: TAttributes | undefined;
12196
- /**
12197
- * Function to create instances of content queries associated with a given directive.
12198
- */
12199
- contentQueries?: ContentQueriesFunction<T> | undefined;
12200
- /**
12201
- * Additional set of instructions specific to view query processing. This could be seen as a
12202
- * set of instructions to be inserted into the template function.
12203
- */
12204
- viewQuery?: ViewQueriesFunction<T> | null | undefined;
12205
- /**
12206
- * Defines the name that can be used in the template to assign this directive to a variable.
12207
- *
12208
- * See: {@link Directive.exportAs}
12209
- */
12210
- exportAs?: string[] | undefined;
12211
- }) => never;
12099
+ export declare function ɵɵdefineDirective<T>(directiveDefinition: DirectiveDefinition<T>): Mutable<ɵDirectiveDef<any>, keyof ɵDirectiveDef<any>>;
12212
12100
 
12213
12101
  /**
12214
12102
  * Construct an injectable definition which defines how a token will be constructed by the DI
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "15.2.2",
3
+ "version": "15.2.4",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",