mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
feat(ct): typed hooks (#17935)
This commit is contained in:
parent
3a281364d8
commit
410b4447c8
8
packages/playwright-ct-react/hooks.d.ts
vendored
8
packages/playwright-ct-react/hooks.d.ts
vendored
@ -14,5 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
|
||||
8
packages/playwright-ct-solid/hooks.d.ts
vendored
8
packages/playwright-ct-solid/hooks.d.ts
vendored
@ -14,5 +14,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
|
||||
8
packages/playwright-ct-svelte/hooks.d.ts
vendored
8
packages/playwright-ct-svelte/hooks.d.ts
vendored
@ -16,5 +16,9 @@
|
||||
|
||||
import type { SvelteComponent } from "svelte";
|
||||
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: any, svelteComponent: SvelteComponent }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: JsonObject, svelteComponent: SvelteComponent }) => Promise<void>): void;
|
||||
|
||||
8
packages/playwright-ct-vue/hooks.d.ts
vendored
8
packages/playwright-ct-vue/hooks.d.ts
vendored
@ -16,5 +16,9 @@
|
||||
|
||||
import { App, ComponentPublicInstance } from 'vue';
|
||||
|
||||
export declare function beforeMount(callback: (params: { app: App, hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { app: App, hooksConfig: any, instance: ComponentPublicInstance }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { app: App, hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { app: App, hooksConfig: JsonObject, instance: ComponentPublicInstance }) => Promise<void>): void;
|
||||
|
||||
8
packages/playwright-ct-vue2/hooks.d.ts
vendored
8
packages/playwright-ct-vue2/hooks.d.ts
vendored
@ -16,5 +16,9 @@
|
||||
|
||||
import { CombinedVueInstance, Vue } from 'vue/types/vue';
|
||||
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: any }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: any, instance: CombinedVueInstance<Vue, object, object, object, Record<never, any>> }) => Promise<void>): void;
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
export declare function beforeMount(callback: (params: { hooksConfig: JsonObject }) => Promise<void>): void;
|
||||
export declare function afterMount(callback: (params: { hooksConfig: JsonObject, instance: CombinedVueInstance<Vue, object, object, object, Record<never, any>> }) => Promise<void>): void;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user