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>; playwrightMount(component: Component, rootElement: Element, hooksConfig?: any): Promise<void>;
playwrightUnmount(rootElement: Element): Promise<void>; playwrightUnmount(rootElement: Element): Promise<void>;
playwrightUpdate(rootElement: Element, component: Component): Promise<void>; playwrightUpdate(rootElement: Element, component: Component): Promise<void>;
__pw_hooks_before_mount?: (<HooksConfig>(params: { hooksConfig?: HooksConfig; } & any) => Promise<any>)[]; __pw_hooks_before_mount?: (<HooksConfig extends JsonObject = JsonObject>(
__pw_hooks_after_mount?: (<HooksConfig>(params: { hooksConfig?: HooksConfig; } & any) => Promise<void>)[]; 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. * limitations under the License.
*/ */
export default function pwRegister( export default function pwRegister(components: Record<string, any>): void
components: { [key: string]: any },
): void

View file

@ -14,6 +14,4 @@
* limitations under the License. * limitations under the License.
*/ */
export default function pwRegister( export default function pwRegister(components: Record<string, any>): void
components: { [key: string]: any },
): void

View file

@ -14,6 +14,4 @@
* limitations under the License. * limitations under the License.
*/ */
export default function pwRegister( export default function pwRegister(components: Record<string, any>): void
components: { [key: string]: any },
): void

View file

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

View file

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