mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-26 21:33:38 +03:00
chore(ct): internal types (#23332)
This commit is contained in:
parent
e3f91bbabf
commit
e47b23e5d4
@ -46,7 +46,11 @@ declare global {
|
||||
playwrightMount(component: Component, rootElement: Element, hooksConfig?: any): Promise<void>;
|
||||
playwrightUnmount(rootElement: Element): Promise<void>;
|
||||
playwrightUpdate(rootElement: Element, component: Component): Promise<void>;
|
||||
__pw_hooks_before_mount?: (<HooksConfig>(params: { hooksConfig?: HooksConfig; } & any) => Promise<any>)[];
|
||||
__pw_hooks_after_mount?: (<HooksConfig>(params: { hooksConfig?: HooksConfig; } & any) => Promise<void>)[];
|
||||
__pw_hooks_before_mount?: (<HooksConfig extends JsonObject = JsonObject>(
|
||||
params: { hooksConfig?: HooksConfig; [key: string]: any }
|
||||
) => Promise<any>)[];
|
||||
__pw_hooks_after_mount?: (<HooksConfig extends JsonObject = JsonObject>(
|
||||
params: { hooksConfig?: HooksConfig; [key: string]: any }
|
||||
) => Promise<void>)[];
|
||||
}
|
||||
}
|
||||
|
4
packages/playwright-ct-react/register.d.ts
vendored
4
packages/playwright-ct-react/register.d.ts
vendored
@ -14,6 +14,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default function pwRegister(
|
||||
components: { [key: string]: any },
|
||||
): void
|
||||
export default function pwRegister(components: Record<string, any>): void
|
||||
|
4
packages/playwright-ct-react17/register.d.ts
vendored
4
packages/playwright-ct-react17/register.d.ts
vendored
@ -14,6 +14,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default function pwRegister(
|
||||
components: { [key: string]: any },
|
||||
): void
|
||||
export default function pwRegister(components: Record<string, any>): void
|
||||
|
4
packages/playwright-ct-solid/register.d.ts
vendored
4
packages/playwright-ct-solid/register.d.ts
vendored
@ -14,6 +14,4 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export default function pwRegister(
|
||||
components: { [key: string]: any },
|
||||
): void
|
||||
export default function pwRegister(components: Record<string, any>): void
|
||||
|
2
packages/playwright-ct-vue/register.d.ts
vendored
2
packages/playwright-ct-vue/register.d.ts
vendored
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
export default function pwRegister(
|
||||
components: { [key: string]: any },
|
||||
components: Record<string, any>,
|
||||
options?: {
|
||||
createApp: any,
|
||||
setDevtoolsHook: any,
|
||||
|
2
packages/playwright-ct-vue2/register.d.ts
vendored
2
packages/playwright-ct-vue2/register.d.ts
vendored
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
export default function pwRegister(
|
||||
components: { [key: string]: any },
|
||||
components: Record<string, any>,
|
||||
options?: {
|
||||
createApp: any,
|
||||
setDevtoolsHook: any,
|
||||
|
Loading…
Reference in New Issue
Block a user