66 * found in the LICENSE file at https://angular.dev/license
77 */
88
9- import { computed , signal } from '@angular/core' ;
9+ import { computed , signal , Signal } from '@angular/core' ;
1010import { SignalLike , WritableSignalLike } from '../behaviors/signal-like/signal-like' ;
1111import { List , ListInputs , ListItem } from '../behaviors/list/list' ;
1212import { ExpansionItem , ExpansionControl , ListExpansion } from '../behaviors/expansion/expansion' ;
@@ -74,13 +74,13 @@ export class TreeItemPattern<V> implements ListItem<V>, ExpansionItem {
7474 readonly selectable : SignalLike < boolean > ;
7575
7676 /** The level of the current item in a tree. */
77- readonly level : SignalLike < number > = computed ( ( ) => this . parent ( ) . level ( ) + 1 ) ;
77+ readonly level : Signal < number > = computed ( ( ) => this . parent ( ) . level ( ) + 1 ) ;
7878
7979 /** Whether this item is currently expanded. */
8080 readonly expanded = computed ( ( ) => this . expansion . isExpanded ( ) ) ;
8181
8282 /** Whether this item is visible. */
83- readonly visible : SignalLike < boolean > = computed (
83+ readonly visible : Signal < boolean > = computed (
8484 ( ) => this . parent ( ) . expanded ( ) && this . parent ( ) . visible ( ) ,
8585 ) ;
8686
@@ -97,7 +97,7 @@ export class TreeItemPattern<V> implements ListItem<V>, ExpansionItem {
9797 readonly tabindex = computed ( ( ) => this . tree ( ) . listBehavior . getItemTabindex ( this ) ) ;
9898
9999 /** Whether the item is selected. */
100- readonly selected : SignalLike < boolean | undefined > = computed ( ( ) => {
100+ readonly selected = computed ( ( ) => {
101101 if ( this . tree ( ) . nav ( ) ) {
102102 return undefined ;
103103 }
@@ -108,7 +108,7 @@ export class TreeItemPattern<V> implements ListItem<V>, ExpansionItem {
108108 } ) ;
109109
110110 /** The current type of this item. */
111- readonly current : SignalLike < string | undefined > = computed ( ( ) => {
111+ readonly current = computed ( ( ) => {
112112 if ( ! this . tree ( ) . nav ( ) ) {
113113 return undefined ;
114114 }
0 commit comments