mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-12 11:50:22 +03:00
chore: have type modifiers directly on file import (#23337)
This commit is contained in:
parent
2710fd8d6f
commit
13f70b6d89
@ -25,7 +25,7 @@ import type { ClientType } from './playwrightConnection';
|
||||
import type { LaunchOptions } from '../server/types';
|
||||
import { ManualPromise } from '../utils/manualPromise';
|
||||
import type { AndroidDevice } from '../server/android/android';
|
||||
import { type SocksProxy } from '../common/socksProxy';
|
||||
import type { SocksProxy } from '../common/socksProxy';
|
||||
import { debugLogger } from '../common/debugLogger';
|
||||
import { createHttpServer } from '../utils';
|
||||
|
||||
|
@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { type Frame } from './frames';
|
||||
import type { Frame } from './frames';
|
||||
import type * as types from './types';
|
||||
import { stringifySelector, type ParsedSelector, splitSelectorByFrame } from '../utils/isomorphic/selectorParser';
|
||||
import { type FrameExecutionContext, type ElementHandle } from './dom';
|
||||
import { type JSHandle } from './javascript';
|
||||
import { type InjectedScript } from './injected/injectedScript';
|
||||
import type { FrameExecutionContext, ElementHandle } from './dom';
|
||||
import type { JSHandle } from './javascript';
|
||||
import type { InjectedScript } from './injected/injectedScript';
|
||||
|
||||
export type SelectorInfo = {
|
||||
parsed: ParsedSelector,
|
||||
|
@ -19,7 +19,7 @@ import { getByAltTextSelector, getByLabelSelector, getByPlaceholderSelector, get
|
||||
import { escapeForTextSelector } from '../../utils/isomorphic/stringUtils';
|
||||
import { asLocator } from '../../utils/isomorphic/locatorGenerators';
|
||||
import type { Language } from '../../utils/isomorphic/locatorGenerators';
|
||||
import { type InjectedScript } from './injectedScript';
|
||||
import type { InjectedScript } from './injectedScript';
|
||||
import { generateSelector } from './selectorGenerator';
|
||||
|
||||
const selectorSymbol = Symbol('selector');
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import type * as actions from '../recorder/recorderActions';
|
||||
import { type InjectedScript } from '../injected/injectedScript';
|
||||
import type { InjectedScript } from '../injected/injectedScript';
|
||||
import { generateSelector, querySelector } from '../injected/selectorGenerator';
|
||||
import type { Point } from '../../common/types';
|
||||
import type { UIState } from '@recorder/recorderTypes';
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import { cssEscape, escapeForAttributeSelector, escapeForTextSelector, normalizeWhiteSpace } from '../../utils/isomorphic/stringUtils';
|
||||
import { type InjectedScript } from './injectedScript';
|
||||
import type { InjectedScript } from './injectedScript';
|
||||
import { getAriaRole, getElementAccessibleName } from './roleUtils';
|
||||
import { elementText } from './selectorUtils';
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { type AttributeSelectorPart } from '../../utils/isomorphic/selectorParser';
|
||||
import type { AttributeSelectorPart } from '../../utils/isomorphic/selectorParser';
|
||||
|
||||
export function matchesComponentAttribute(obj: any, attr: AttributeSelectorPart) {
|
||||
for (const token of attr.jsonPath) {
|
||||
|
@ -17,7 +17,7 @@
|
||||
import type * as dom from './dom';
|
||||
import * as utilityScriptSource from '../generated/utilityScriptSource';
|
||||
import { serializeAsCallArgument } from './isomorphic/utilityScriptSerializers';
|
||||
import { type UtilityScript } from './injected/utilityScript';
|
||||
import type { UtilityScript } from './injected/utilityScript';
|
||||
import { SdkObject } from './instrumentation';
|
||||
import { ScopedRace } from '../utils/manualPromise';
|
||||
|
||||
|
@ -22,7 +22,7 @@ import { createGuid, debugMode, addInternalStackPrefix, mergeTraceFiles, saveTra
|
||||
import type { Fixtures, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, ScreenshotMode, TestInfo, TestType, TraceMode, VideoMode } from '../types/test';
|
||||
import type { TestInfoImpl } from './worker/testInfo';
|
||||
import { rootTestType } from './common/testType';
|
||||
import { type ContextReuseMode } from './common/config';
|
||||
import type { ContextReuseMode } from './common/config';
|
||||
import { artifactsFolderName } from './isomorphic/folders';
|
||||
import type { ClientInstrumentation, ClientInstrumentationListener } from '../../playwright-core/src/client/clientInstrumentation';
|
||||
import type { ParsedStackTrace } from '../../playwright-core/src/utils/stackTrace';
|
||||
|
Loading…
Reference in New Issue
Block a user