From 5c5732da37c09e49d15051f80676611df3af3a7a Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:18:34 +0200 Subject: [PATCH 1/2] docs: add Hyperxq as a contributor for code (#479) --- .all-contributorsrc | 9 +++++++++ README.md | 1 + 2 files changed, 10 insertions(+) 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

💻 From 8ca97c7762f73dd01bf4f792987fb8cb4756039c Mon Sep 17 00:00:00 2001 From: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Date: Wed, 7 Aug 2024 19:06:48 +0200 Subject: [PATCH 2/2] fix: do not import OutputRef (#481) Closes #480 --- projects/testing-library/src/lib/models.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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