File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
packages/core/src/authoring/model Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1099,6 +1099,10 @@ export interface ModelSignal<T> extends WritableSignal<T> {
10991099 [ɵINPUT_SIGNAL_BRAND_WRITE_TYPE ]: T ;
11001100 // (undocumented)
11011101 [SIGNAL ]: ModelSignalNode <T >;
1102+ // @deprecated (undocumented)
1103+ subscribe(callback : (value : T ) => void ): {
1104+ unsubscribe: () => void ;
1105+ };
11021106}
11031107
11041108// @public @deprecated
Original file line number Diff line number Diff line change @@ -41,11 +41,8 @@ export interface ModelSignal<T> extends WritableSignal<T> {
4141 [ ɵINPUT_SIGNAL_BRAND_READ_TYPE ] : T ;
4242 [ ɵINPUT_SIGNAL_BRAND_WRITE_TYPE ] : T ;
4343
44- // TODO(crisbeto): mark this as @internal
45- /**
46- * Subscribes to changes in the model's value. Used by listener instructions at runtime.
47- * @deprecated Do not use, will be removed.
48- */
44+ // TODO(crisbeto): either make this a public API or mark as internal pending discussion.
45+ /** @deprecated Do not use, will be removed. */
4946 subscribe ( callback : ( value : T ) => void ) : { unsubscribe : ( ) => void } ;
5047}
5148
You can’t perform that action at this time.
0 commit comments