fix(ct): fix component.d.ts core types (#29463)

Fixes https://github.com/microsoft/playwright/issues/29461
This commit is contained in:
Max Schmitt 2024-02-12 22:37:31 +01:00 committed by GitHub
parent fe81790221
commit b947639d3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -47,3 +47,9 @@ export class ImportRegistry {
return importedObject;
}
}
declare global {
interface Window {
__pwRegistry: ImportRegistry;
}
}

View File

@ -55,7 +55,6 @@ declare global {
__pw_hooks_after_mount?: (<HooksConfig extends JsonObject = JsonObject>(
params: { hooksConfig?: HooksConfig; [key: string]: any }
) => Promise<void>)[];
__pwRegistry: ImportRegistry;
// Can't start with __pw due to core reuse bindings logic for __pw*.
__ctDispatchFunction: (ordinal: number, args: any[]) => void;
__pwUnwrapObject: (value: any) => Promise<any>;