@jscutlery/playwright-ct-angular 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.d.ts +5 -5
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EnvironmentProviders, InputSignal, Provider, Type } from '@angular/core';
|
|
1
|
+
import type { EnvironmentProviders, EventEmitter, InputSignal, Provider, Type } from '@angular/core';
|
|
2
2
|
import type { PlaywrightTestConfig, TestType } from '@playwright/experimental-ct-core';
|
|
3
3
|
import * as playwrightCtCore from '@playwright/experimental-ct-core';
|
|
4
4
|
import { JsonObject } from '@playwright/experimental-ct-core/types/component';
|
|
@@ -29,11 +29,11 @@ export type Inputs<COMPONENT> = Partial<{
|
|
|
29
29
|
[PROPERTY in keyof COMPONENT]: COMPONENT[PROPERTY] extends InputSignal<infer VALUE> ? VALUE : COMPONENT[PROPERTY];
|
|
30
30
|
}>;
|
|
31
31
|
export type OutputListeners<COMPONENT> = {
|
|
32
|
-
[PROPERTY in keyof COMPONENT as COMPONENT[PROPERTY] extends Subscribable<
|
|
32
|
+
[PROPERTY in keyof COMPONENT as COMPONENT[PROPERTY] extends Subscribable<unknown> ? PROPERTY : never]: (value: Emitted<COMPONENT[PROPERTY]>) => void;
|
|
33
33
|
};
|
|
34
|
-
|
|
35
|
-
subscribe(
|
|
36
|
-
}
|
|
34
|
+
type Subscribable<T> = {
|
|
35
|
+
subscribe(next: (value: T) => void): void;
|
|
36
|
+
} | EventEmitter<T>;
|
|
37
37
|
type Emitted<SUBSCRIBABLE> = SUBSCRIBABLE extends Subscribable<infer EMITTED> ? EMITTED : SUBSCRIBABLE;
|
|
38
38
|
export declare const test: TestType<ComponentFixtures>;
|
|
39
39
|
export declare const defineConfig: typeof playwrightCtCore.defineConfig;
|