@@ -36,7 +36,8 @@ export interface DefaultElementBoundaryNgElementStrategyOptions {
36
36
* protected private `ComponentNgElementStrategy.componentRef`
37
37
*/
38
38
export class DefaultElementBoundaryNgElementStrategyOptionsDefault
39
- implements DefaultElementBoundaryNgElementStrategyOptions {
39
+ implements DefaultElementBoundaryNgElementStrategyOptions
40
+ {
40
41
constructor ( {
41
42
componentRefExtractor,
42
43
} : DefaultElementBoundaryNgElementStrategyOptions = { } ) {
@@ -59,7 +60,8 @@ export class DefaultElementBoundaryNgElementStrategyOptionsDefault
59
60
* from default {@link NgElementStrategy} of `@angular/elements` package
60
61
*/
61
62
export class DefaultElementBoundaryNgElementStrategy
62
- implements ElementBoundaryNgElementStrategy {
63
+ implements ElementBoundaryNgElementStrategy
64
+ {
63
65
// HACK: In Angular Elements before v10 `events` property was not set
64
66
// before `this.connect()` was not called resulting in `undefined`
65
67
// so we are using late initialization of stream
@@ -115,15 +117,14 @@ export interface DefaultNgElementStrategyFactoryStrategy<O = never> {
115
117
/**
116
118
* Extract options type `O` from the {@link DefaultNgElementStrategyFactoryStrategy}
117
119
*/
118
- export type DefaultNgElementStrategyFactoryStrategyOptions <
119
- S
120
- > = S extends DefaultNgElementStrategyFactoryStrategy < infer O > ? O : never ;
120
+ export type DefaultNgElementStrategyFactoryStrategyOptions < S > =
121
+ S extends DefaultNgElementStrategyFactoryStrategy < infer O > ? O : never ;
121
122
122
123
/**
123
124
* Options for {@link DefaultElementBoundaryNgElementStrategyFactory}
124
125
*/
125
126
export interface DefaultElementBoundaryNgElementStrategyFactoryOptions <
126
- S extends DefaultNgElementStrategyFactoryStrategy < any >
127
+ S extends DefaultNgElementStrategyFactoryStrategy < any > ,
127
128
> {
128
129
/**
129
130
* Strategy to create the default {@link NgElementStrategyFactory}
@@ -149,9 +150,8 @@ export interface DefaultElementBoundaryNgElementStrategyFactoryOptions<
149
150
*/
150
151
export class DefaultNgElementStrategyFactoryStrategyDefault
151
152
implements
152
- DefaultNgElementStrategyFactoryStrategy <
153
- DefaultNgElementStrategyFactoryOptions
154
- > {
153
+ DefaultNgElementStrategyFactoryStrategy < DefaultNgElementStrategyFactoryOptions >
154
+ {
155
155
create (
156
156
component : Type < any > ,
157
157
injector : Injector ,
@@ -168,10 +168,9 @@ export class DefaultNgElementStrategyFactoryStrategyDefault
168
168
* as a {@link DefaultNgElementStrategyFactoryStrategy}
169
169
*/
170
170
export class DefaultElementBoundaryNgElementStrategyFactoryOptionsDefault <
171
- S extends DefaultNgElementStrategyFactoryStrategy <
172
- any
173
- > = DefaultNgElementStrategyFactoryStrategyDefault
174
- > implements DefaultElementBoundaryNgElementStrategyFactoryOptions < S > {
171
+ S extends DefaultNgElementStrategyFactoryStrategy < any > = DefaultNgElementStrategyFactoryStrategyDefault ,
172
+ > implements DefaultElementBoundaryNgElementStrategyFactoryOptions < S >
173
+ {
175
174
factoryStrategy : S ;
176
175
factoryStrategyOptions ?: DefaultNgElementStrategyFactoryStrategyOptions < S > ;
177
176
strategyOptions ?: DefaultElementBoundaryNgElementStrategyOptions ;
@@ -199,23 +198,19 @@ export class DefaultElementBoundaryNgElementStrategyFactoryOptionsDefault<
199
198
* as a {@link DefaultNgElementStrategyFactoryStrategy}
200
199
*/
201
200
export class DefaultElementBoundaryNgElementStrategyFactory <
202
- S extends DefaultNgElementStrategyFactoryStrategy <
203
- any
204
- > = DefaultNgElementStrategyFactoryStrategyDefault
205
- > implements ElementBoundaryNgElementStrategyFactory {
206
- private options : DefaultElementBoundaryNgElementStrategyFactoryOptionsDefault <
207
- S
208
- > ;
201
+ S extends DefaultNgElementStrategyFactoryStrategy < any > = DefaultNgElementStrategyFactoryStrategyDefault ,
202
+ > implements ElementBoundaryNgElementStrategyFactory
203
+ {
204
+ private options : DefaultElementBoundaryNgElementStrategyFactoryOptionsDefault < S > ;
209
205
private defaultStrategyFactory : NgElementStrategyFactory ;
210
206
211
207
constructor (
212
208
component : Type < any > ,
213
209
injector : Injector ,
214
210
options ?: DefaultElementBoundaryNgElementStrategyFactoryOptions < S > ,
215
211
) {
216
- this . options = new DefaultElementBoundaryNgElementStrategyFactoryOptionsDefault (
217
- options ,
218
- ) ;
212
+ this . options =
213
+ new DefaultElementBoundaryNgElementStrategyFactoryOptionsDefault ( options ) ;
219
214
220
215
this . defaultStrategyFactory = this . options . factoryStrategy . create (
221
216
component ,
0 commit comments