Skip to content

Commit 8e515f1

Browse files
committed
refactor(cdk/a11y): explicitly add Provider type
add `Provider` type to `NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER` as the inferred type throws error when running dev-app locally
1 parent 8950ec3 commit 8e515f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cdk/a11y/key-manager/noop-tree-key-manager.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
TreeKeyManagerItem,
1414
TreeKeyManagerStrategy,
1515
} from './tree-key-manager-strategy';
16+
import {Provider} from '@angular/core';
1617

1718
// NoopTreeKeyManager is a "noop" implementation of TreeKeyMangerStrategy. Methods are noops. Does
1819
// not emit to streams.
@@ -102,7 +103,7 @@ export function NOOP_TREE_KEY_MANAGER_FACTORY<
102103
*
103104
* @breaking-change 21.0.0
104105
*/
105-
export const NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER = {
106+
export const NOOP_TREE_KEY_MANAGER_FACTORY_PROVIDER: Provider = {
106107
provide: TREE_KEY_MANAGER,
107108
useFactory: NOOP_TREE_KEY_MANAGER_FACTORY,
108109
};

0 commit comments

Comments
 (0)