@@ -20,13 +20,19 @@ import {
20
20
21
21
@NgModule ( )
22
22
export class PersistentSettingsConfigModule < State , Settings > {
23
+ // @ts -ignore(go/ts48upgrade) Fix code and remove this comment. Error:
24
+ // TS2344: Type 'Settings' does not satisfy the constraint
25
+ // 'PersistableSettings'.
23
26
private readonly globalSettingSelectors : SettingSelector < State , Settings > [ ] =
24
27
[ ] ;
25
28
26
29
constructor (
27
30
@Optional ( )
28
31
@Inject ( GLOBAL_PERSISTENT_SETTINGS_TOKEN )
29
32
globalSettingSelectorFactories : Array <
33
+ // @ts -ignore(go/ts48upgrade) Fix code and remove this
34
+ // comment. Error: TS2344: Type 'Settings' does not satisfy
35
+ // the constraint 'PersistableSettings'.
30
36
( ) => SettingSelector < State , Settings >
31
37
> | null
32
38
) {
@@ -41,6 +47,9 @@ export class PersistentSettingsConfigModule<State, Settings> {
41
47
/**
42
48
* Returns Ngrx selectors for getting global setting values.
43
49
*/
50
+ // @ts -ignore(go/ts48upgrade) Fix code and remove this comment. Error:
51
+ // TS2344: Type 'Settings' does not satisfy the constraint
52
+ // 'PersistableSettings'.
44
53
getGlobalSettingSelectors ( ) : SettingSelector < State , Settings > [ ] {
45
54
return this . globalSettingSelectors ?? [ ] ;
46
55
}
@@ -69,6 +78,9 @@ export class PersistentSettingsConfigModule<State, Settings> {
69
78
* export class MyModule {}
70
79
*/
71
80
static defineGlobalSetting < State , Settings > (
81
+ // @ts -ignore(go/ts48upgrade) Fix code and remove this comment. Error:
82
+ // TS2344: Type 'Settings' does not satisfy the constraint
83
+ // 'PersistableSettings'.
72
84
selectorFactory : ( ) => SettingSelector < State , Settings >
73
85
) : ModuleWithProviders < PersistentSettingsConfigModule < any , { } > > {
74
86
return {
0 commit comments