Skip to content

Commit 8ca97c7

Browse files
authoredAug 7, 2024··
fix: do not import OutputRef (#481)
Closes #480
1 parent 5c5732d commit 8ca97c7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎projects/testing-library/src/lib/models.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
import { Type, DebugElement, OutputRef, EventEmitter, Signal } from '@angular/core';
1+
import { Type, DebugElement, EventEmitter, Signal } from '@angular/core';
22
import { ComponentFixture, DeferBlockBehavior, DeferBlockState, TestBed } from '@angular/core/testing';
33
import { Routes } from '@angular/router';
44
import { BoundFunction, Queries, queries, Config as dtlConfig, PrettyDOMOptions } from '@testing-library/dom';
55

6+
// TODO: import from Angular (is a breaking change)
7+
interface OutputRef<T> {
8+
subscribe(callback: (value: T) => void): OutputRefSubscription;
9+
}
10+
interface OutputRefSubscription {
11+
unsubscribe(): void;
12+
}
13+
614
export type OutputRefKeysWithCallback<T> = {
715
[key in keyof T]?: T[key] extends EventEmitter<infer U>
816
? (val: U) => void

0 commit comments

Comments
 (0)
Please sign in to comment.