Skip to content

Commit 87549af

Browse files
atscottthePunderWoman
authored andcommitted
fix(core): Fix capitalization of toObservableOptions (#49832)
The capitalization of the interface should be pascal case. PR Close #49832
1 parent 970e8b4 commit 87549af

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

goldens/public-api/core/rxjs-interop/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import { Signal } from '@angular/core';
1414
export function takeUntilDestroyed<T>(destroyRef?: DestroyRef): MonoTypeOperatorFunction<T>;
1515

1616
// @public
17-
export function toObservable<T>(source: Signal<T>, options?: toObservableOptions): Observable<T>;
17+
export function toObservable<T>(source: Signal<T>, options?: ToObservableOptions): Observable<T>;
1818

1919
// @public
20-
export interface toObservableOptions {
20+
export interface ToObservableOptions {
2121
injector?: Injector;
2222
}
2323

packages/core/rxjs-interop/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
*/
88

99
export {takeUntilDestroyed} from './take_until_destroyed';
10-
export {toObservable, toObservableOptions} from './to_observable';
10+
export {toObservable, ToObservableOptions} from './to_observable';
1111
export {toSignal} from './to_signal';

packages/core/rxjs-interop/src/to_observable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {Observable} from 'rxjs';
1414
*
1515
* @developerPreview
1616
*/
17-
export interface toObservableOptions {
17+
export interface ToObservableOptions {
1818
/**
1919
* The `Injector` to use when creating the effect.
2020
*
@@ -34,7 +34,7 @@ export interface toObservableOptions {
3434
*/
3535
export function toObservable<T>(
3636
source: Signal<T>,
37-
options?: toObservableOptions,
37+
options?: ToObservableOptions,
3838
): Observable<T> {
3939
!options?.injector && assertInInjectionContext(toObservable);
4040
const injector = options?.injector ?? inject(Injector);

0 commit comments

Comments
 (0)