chore(ct): internal types (#23332)

This commit is contained in:
Sander 2023-06-02 23:11:03 +02:00 committed by GitHub
parent e3f91bbabf
commit e47b23e5d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 13 deletions

View File

@ -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>)[];
}
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -15,7 +15,7 @@
*/
export default function pwRegister(
components: { [key: string]: any },
components: Record<string, any>,
options?: {
createApp: any,
setDevtoolsHook: any,

View File

@ -15,7 +15,7 @@
*/
export default function pwRegister(
components: { [key: string]: any },
components: Record<string, any>,
options?: {
createApp: any,
setDevtoolsHook: any,