diff --git a/.all-contributorsrc b/.all-contributorsrc index f79ae1c..a919fb6 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -391,6 +391,15 @@ "ideas", "doc" ] + }, + { + "login": "Hyperxq", + "name": "Daniel Ramírez Barrientos", + "avatar_url": "https://avatars.githubusercontent.com/u/22332354?v=4", + "profile": "https://github.com/Hyperxq", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, diff --git a/README.md b/README.md index dc11c45..f542b69 100644 --- a/README.md +++ b/README.md @@ -267,6 +267,7 @@ Thanks goes to these people ([emoji key][emojis]): Jan-Willem Baart
Jan-Willem Baart

💻 ⚠️ S. Mumenthaler
S. Mumenthaler

💻 ⚠️ Andrei Alecu
Andrei Alecu

💻 🤔 📖 + Daniel Ramírez Barrientos
Daniel Ramírez Barrientos

💻 diff --git a/projects/testing-library/src/lib/models.ts b/projects/testing-library/src/lib/models.ts index 8e0e57f..f7697c5 100644 --- a/projects/testing-library/src/lib/models.ts +++ b/projects/testing-library/src/lib/models.ts @@ -1,8 +1,16 @@ -import { Type, DebugElement, OutputRef, EventEmitter, Signal } from '@angular/core'; +import { Type, DebugElement, EventEmitter, Signal } from '@angular/core'; import { ComponentFixture, DeferBlockBehavior, DeferBlockState, TestBed } from '@angular/core/testing'; import { Routes } from '@angular/router'; import { BoundFunction, Queries, queries, Config as dtlConfig, PrettyDOMOptions } from '@testing-library/dom'; +// TODO: import from Angular (is a breaking change) +interface OutputRef { + subscribe(callback: (value: T) => void): OutputRefSubscription; +} +interface OutputRefSubscription { + unsubscribe(): void; +} + export type OutputRefKeysWithCallback = { [key in keyof T]?: T[key] extends EventEmitter ? (val: U) => void