mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-07 11:46:42 +03:00
chore(ct): dedupe json object (#22138)
This commit is contained in:
parent
159e71982e
commit
789d8b24c0
6
packages/playwright-ct-react/hooks.d.ts
vendored
6
packages/playwright-ct-react/hooks.d.ts
vendored
@ -14,10 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||||
callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>
|
callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>
|
||||||
): void;
|
): void;
|
||||||
|
6
packages/playwright-ct-react/index.d.ts
vendored
6
packages/playwright-ct-react/index.d.ts
vendored
@ -23,6 +23,7 @@ import type {
|
|||||||
PlaywrightWorkerOptions,
|
PlaywrightWorkerOptions,
|
||||||
Locator,
|
Locator,
|
||||||
} from '@playwright/test';
|
} from '@playwright/test';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
import type { InlineConfig } from 'vite';
|
import type { InlineConfig } from 'vite';
|
||||||
|
|
||||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||||
@ -34,11 +35,6 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
|
|
||||||
export interface MountOptions<HooksConfig extends JsonObject> {
|
export interface MountOptions<HooksConfig extends JsonObject> {
|
||||||
hooksConfig?: HooksConfig;
|
hooksConfig?: HooksConfig;
|
||||||
}
|
}
|
||||||
|
6
packages/playwright-ct-react17/hooks.d.ts
vendored
6
packages/playwright-ct-react17/hooks.d.ts
vendored
@ -14,10 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||||
callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>
|
callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>
|
||||||
): void;
|
): void;
|
||||||
|
6
packages/playwright-ct-react17/index.d.ts
vendored
6
packages/playwright-ct-react17/index.d.ts
vendored
@ -23,6 +23,7 @@ import type {
|
|||||||
PlaywrightWorkerOptions,
|
PlaywrightWorkerOptions,
|
||||||
Locator,
|
Locator,
|
||||||
} from '@playwright/test';
|
} from '@playwright/test';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
import type { InlineConfig } from 'vite';
|
import type { InlineConfig } from 'vite';
|
||||||
|
|
||||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||||
@ -34,11 +35,6 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
|
|
||||||
export interface MountOptions<HooksConfig extends JsonObject> {
|
export interface MountOptions<HooksConfig extends JsonObject> {
|
||||||
hooksConfig?: HooksConfig;
|
hooksConfig?: HooksConfig;
|
||||||
}
|
}
|
||||||
|
5
packages/playwright-ct-solid/hooks.d.ts
vendored
5
packages/playwright-ct-solid/hooks.d.ts
vendored
@ -15,11 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { JSXElement } from "solid-js";
|
import { JSXElement } from "solid-js";
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||||
callback: (params: { hooksConfig?: HooksConfig, App: () => JSXElement }) => Promise<void | JSXElement>
|
callback: (params: { hooksConfig?: HooksConfig, App: () => JSXElement }) => Promise<void | JSXElement>
|
||||||
): void;
|
): void;
|
||||||
|
6
packages/playwright-ct-solid/index.d.ts
vendored
6
packages/playwright-ct-solid/index.d.ts
vendored
@ -23,6 +23,7 @@ import type {
|
|||||||
PlaywrightWorkerOptions,
|
PlaywrightWorkerOptions,
|
||||||
Locator,
|
Locator,
|
||||||
} from '@playwright/test';
|
} from '@playwright/test';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
import type { InlineConfig } from 'vite';
|
import type { InlineConfig } from 'vite';
|
||||||
|
|
||||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||||
@ -34,11 +35,6 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
|
|
||||||
export interface MountOptions<HooksConfig extends JsonObject> {
|
export interface MountOptions<HooksConfig extends JsonObject> {
|
||||||
hooksConfig?: HooksConfig;
|
hooksConfig?: HooksConfig;
|
||||||
}
|
}
|
||||||
|
5
packages/playwright-ct-svelte/hooks.d.ts
vendored
5
packages/playwright-ct-svelte/hooks.d.ts
vendored
@ -15,11 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type { SvelteComponent } from 'svelte';
|
import type { SvelteComponent } from 'svelte';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||||
callback: (params: { hooksConfig?: HooksConfig }) => Promise<void>
|
callback: (params: { hooksConfig?: HooksConfig }) => Promise<void>
|
||||||
): void;
|
): void;
|
||||||
|
6
packages/playwright-ct-svelte/index.d.ts
vendored
6
packages/playwright-ct-svelte/index.d.ts
vendored
@ -23,6 +23,7 @@ import type {
|
|||||||
PlaywrightWorkerOptions,
|
PlaywrightWorkerOptions,
|
||||||
Locator,
|
Locator,
|
||||||
} from '@playwright/test';
|
} from '@playwright/test';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
import type { InlineConfig } from 'vite';
|
import type { InlineConfig } from 'vite';
|
||||||
import type { SvelteComponent, ComponentProps } from 'svelte/types/runtime';
|
import type { SvelteComponent, ComponentProps } from 'svelte/types/runtime';
|
||||||
|
|
||||||
@ -35,11 +36,6 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
|
|
||||||
type Slot = string | string[];
|
type Slot = string | string[];
|
||||||
|
|
||||||
export interface MountOptions<
|
export interface MountOptions<
|
||||||
|
5
packages/playwright-ct-vue/hooks.d.ts
vendored
5
packages/playwright-ct-vue/hooks.d.ts
vendored
@ -15,11 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import type { App, ComponentPublicInstance } from 'vue';
|
import type { App, ComponentPublicInstance } from 'vue';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||||
callback: (params: { app: App; hooksConfig?: HooksConfig }) => Promise<void>
|
callback: (params: { app: App; hooksConfig?: HooksConfig }) => Promise<void>
|
||||||
): void;
|
): void;
|
||||||
|
6
packages/playwright-ct-vue/index.d.ts
vendored
6
packages/playwright-ct-vue/index.d.ts
vendored
@ -23,6 +23,7 @@ import type {
|
|||||||
PlaywrightWorkerOptions,
|
PlaywrightWorkerOptions,
|
||||||
Locator,
|
Locator,
|
||||||
} from '@playwright/test';
|
} from '@playwright/test';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
import type { InlineConfig } from 'vite';
|
import type { InlineConfig } from 'vite';
|
||||||
|
|
||||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||||
@ -34,11 +35,6 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
|
|
||||||
type Slot = string | string[];
|
type Slot = string | string[];
|
||||||
|
|
||||||
export interface MountOptions<
|
export interface MountOptions<
|
||||||
|
6
packages/playwright-ct-vue2/hooks.d.ts
vendored
6
packages/playwright-ct-vue2/hooks.d.ts
vendored
@ -16,11 +16,7 @@
|
|||||||
|
|
||||||
import { ComponentOptions } from 'vue';
|
import { ComponentOptions } from 'vue';
|
||||||
import { CombinedVueInstance, Vue, VueConstructor } from 'vue/types/vue';
|
import { CombinedVueInstance, Vue, VueConstructor } from 'vue/types/vue';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
|
|
||||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||||
callback: (params: {
|
callback: (params: {
|
||||||
|
6
packages/playwright-ct-vue2/index.d.ts
vendored
6
packages/playwright-ct-vue2/index.d.ts
vendored
@ -23,6 +23,7 @@ import type {
|
|||||||
PlaywrightWorkerOptions,
|
PlaywrightWorkerOptions,
|
||||||
Locator,
|
Locator,
|
||||||
} from '@playwright/test';
|
} from '@playwright/test';
|
||||||
|
import type { JsonObject } from '@playwright/test/types/component';
|
||||||
import type { InlineConfig } from 'vite';
|
import type { InlineConfig } from 'vite';
|
||||||
|
|
||||||
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig<T, W>, 'use'> & {
|
||||||
@ -34,11 +35,6 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
type JsonPrimitive = string | number | boolean | null;
|
|
||||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
||||||
type JsonArray = JsonValue[];
|
|
||||||
type JsonObject = { [Key in string]?: JsonValue };
|
|
||||||
|
|
||||||
type Slot = string | string[];
|
type Slot = string | string[];
|
||||||
|
|
||||||
export interface MountOptions<
|
export interface MountOptions<
|
||||||
|
@ -14,6 +14,11 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
type JsonPrimitive = string | number | boolean | null;
|
||||||
|
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||||
|
type JsonArray = JsonValue[];
|
||||||
|
export type JsonObject = { [Key in string]?: JsonValue };
|
||||||
|
|
||||||
export type JsxComponent = {
|
export type JsxComponent = {
|
||||||
kind: 'jsx',
|
kind: 'jsx',
|
||||||
type: string,
|
type: string,
|
||||||
|
Loading…
Reference in New Issue
Block a user