Skip to content

Commit

Permalink
fix: do not import OutputRef (#481)
Browse files Browse the repository at this point in the history
Closes #480
  • Loading branch information
timdeschryver authored Aug 7, 2024
1 parent 5c5732d commit 8ca97c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion projects/testing-library/src/lib/models.ts
Original file line number Diff line number Diff line change
@@ -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<T> {
subscribe(callback: (value: T) => void): OutputRefSubscription;
}
interface OutputRefSubscription {
unsubscribe(): void;
}

export type OutputRefKeysWithCallback<T> = {
[key in keyof T]?: T[key] extends EventEmitter<infer U>
? (val: U) => void
Expand Down

0 comments on commit 8ca97c7

Please sign in to comment.