chore(ct): rename component.d.ts (#22234)
This commit is contained in:
parent
fc23d35697
commit
cea382015f
2
packages/playwright-ct-react/hooks.d.ts
vendored
2
packages/playwright-ct-react/hooks.d.ts
vendored
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>
|
||||
|
|
|
|||
2
packages/playwright-ct-react/index.d.ts
vendored
2
packages/playwright-ct-react/index.d.ts
vendored
|
|
@ -23,7 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||
|
|
|
|||
2
packages/playwright-ct-react17/hooks.d.ts
vendored
2
packages/playwright-ct-react17/hooks.d.ts
vendored
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>
|
||||
|
|
|
|||
2
packages/playwright-ct-react17/index.d.ts
vendored
2
packages/playwright-ct-react17/index.d.ts
vendored
|
|
@ -23,7 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||
|
|
|
|||
2
packages/playwright-ct-solid/hooks.d.ts
vendored
2
packages/playwright-ct-solid/hooks.d.ts
vendored
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
import { JSXElement } from "solid-js";
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: { hooksConfig?: HooksConfig, App: () => JSXElement }) => Promise<void | JSXElement>
|
||||
|
|
|
|||
2
packages/playwright-ct-solid/index.d.ts
vendored
2
packages/playwright-ct-solid/index.d.ts
vendored
|
|
@ -23,7 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||
|
|
|
|||
2
packages/playwright-ct-svelte/hooks.d.ts
vendored
2
packages/playwright-ct-svelte/hooks.d.ts
vendored
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
import type { SvelteComponent } from 'svelte';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: { hooksConfig?: HooksConfig }) => Promise<void>
|
||||
|
|
|
|||
2
packages/playwright-ct-svelte/index.d.ts
vendored
2
packages/playwright-ct-svelte/index.d.ts
vendored
|
|
@ -23,7 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
import type { InlineConfig } from 'vite';
|
||||
import type { SvelteComponent, ComponentProps } from 'svelte/types/runtime';
|
||||
|
||||
|
|
|
|||
2
packages/playwright-ct-vue/hooks.d.ts
vendored
2
packages/playwright-ct-vue/hooks.d.ts
vendored
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
import type { App, ComponentPublicInstance } from 'vue';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: { app: App; hooksConfig?: HooksConfig }) => Promise<void>
|
||||
|
|
|
|||
2
packages/playwright-ct-vue/index.d.ts
vendored
2
packages/playwright-ct-vue/index.d.ts
vendored
|
|
@ -23,7 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import { createApp as __pwCreateApp, setDevtoolsHook as __pwSetDevtoolsHook, h a
|
|||
import { compile as __pwCompile } from '@vue/compiler-dom';
|
||||
import * as __pwVue from 'vue';
|
||||
|
||||
/** @typedef {import('@playwright/test/types/component').Component} Component */
|
||||
/** @typedef {import('@playwright/test/types/experimentalComponent').Component} Component */
|
||||
/** @typedef {import('vue').Component} FrameworkComponent */
|
||||
|
||||
/** @type {Map<string, FrameworkComponent>} */
|
||||
|
|
|
|||
2
packages/playwright-ct-vue2/hooks.d.ts
vendored
2
packages/playwright-ct-vue2/hooks.d.ts
vendored
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
import { ComponentOptions } from 'vue';
|
||||
import { CombinedVueInstance, Vue, VueConstructor } from 'vue/types/vue';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: {
|
||||
|
|
|
|||
2
packages/playwright-ct-vue2/index.d.ts
vendored
2
packages/playwright-ct-vue2/index.d.ts
vendored
|
|
@ -23,7 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { JsonObject } from '@playwright/test/types/experimentalComponent';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
import type { Fixtures, Locator, Page, BrowserContextOptions, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, BrowserContext, ContextReuseMode, FullConfigInternal } from './common/types';
|
||||
import type { Component, JsxComponent, MountOptions } from '../types/component';
|
||||
import type { Component, JsxComponent, MountOptions } from '../types/experimentalComponent';
|
||||
|
||||
let boundCallbacksForMount: Function[] = [];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue