| 16 | |
| 17 | @Service({autoProvided: false}) |
| 18 | export class EditorUiState { |
| 19 | private readonly environmentInjector = inject(EnvironmentInjector); |
| 20 | |
| 21 | tutorialType = toSignal( |
| 22 | from(injectEmbeddedTutorialManager(this.environmentInjector)).pipe( |
| 23 | switchMap((embeddedTutorialManager) => |
| 24 | embeddedTutorialManager.tutorialChanged$.pipe(map(() => embeddedTutorialManager.type())), |
| 25 | ), |
| 26 | filter((tutorialType): tutorialType is TutorialMetadata['type'] => Boolean(tutorialType)), |
| 27 | ), |
| 28 | ); |
| 29 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…