chore: have type modifiers directly on file import (#23337)

This commit is contained in:
Max Schmitt 2023-05-30 21:11:35 +02:00 committed by GitHub
parent 2710fd8d6f
commit 13f70b6d89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 11 deletions

View File

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

View File

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

View File

@ -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');

View File

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

View File

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

View File

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

View File

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

View File

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