chore(ct): dedupe json object (#22138)
This commit is contained in:
Родитель
159e71982e
Коммит
789d8b24c0
|
@ -14,10 +14,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>
|
||||
): void;
|
||||
|
|
|
@ -23,6 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
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> {
|
||||
hooksConfig?: HooksConfig;
|
||||
}
|
||||
|
|
|
@ -14,10 +14,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: { hooksConfig?: HooksConfig; App: () => JSX.Element }) => Promise<void | JSX.Element>
|
||||
): void;
|
||||
|
|
|
@ -23,6 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
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> {
|
||||
hooksConfig?: HooksConfig;
|
||||
}
|
||||
|
|
|
@ -15,11 +15,8 @@
|
|||
*/
|
||||
|
||||
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>(
|
||||
callback: (params: { hooksConfig?: HooksConfig, App: () => JSXElement }) => Promise<void | JSXElement>
|
||||
): void;
|
||||
|
|
|
@ -23,6 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
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> {
|
||||
hooksConfig?: HooksConfig;
|
||||
}
|
||||
|
|
|
@ -15,11 +15,8 @@
|
|||
*/
|
||||
|
||||
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>(
|
||||
callback: (params: { hooksConfig?: HooksConfig }) => Promise<void>
|
||||
): void;
|
||||
|
|
|
@ -23,6 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { InlineConfig } from 'vite';
|
||||
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[];
|
||||
|
||||
export interface MountOptions<
|
||||
|
|
|
@ -15,11 +15,8 @@
|
|||
*/
|
||||
|
||||
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>(
|
||||
callback: (params: { app: App; hooksConfig?: HooksConfig }) => Promise<void>
|
||||
): void;
|
||||
|
|
|
@ -23,6 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
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[];
|
||||
|
||||
export interface MountOptions<
|
||||
|
|
|
@ -16,11 +16,7 @@
|
|||
|
||||
import { ComponentOptions } from 'vue';
|
||||
import { CombinedVueInstance, Vue, VueConstructor } from 'vue/types/vue';
|
||||
|
||||
type JsonPrimitive = string | number | boolean | null;
|
||||
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
||||
type JsonArray = JsonValue[];
|
||||
type JsonObject = { [Key in string]?: JsonValue };
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
|
||||
export declare function beforeMount<HooksConfig extends JsonObject>(
|
||||
callback: (params: {
|
||||
|
|
|
@ -23,6 +23,7 @@ import type {
|
|||
PlaywrightWorkerOptions,
|
||||
Locator,
|
||||
} from '@playwright/test';
|
||||
import type { JsonObject } from '@playwright/test/types/component';
|
||||
import type { InlineConfig } from 'vite';
|
||||
|
||||
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[];
|
||||
|
||||
export interface MountOptions<
|
||||
|
|
|
@ -14,6 +14,11 @@
|
|||
* 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 = {
|
||||
kind: 'jsx',
|
||||
type: string,
|
||||
|
|
Загрузка…
Ссылка в новой задаче