mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: use @typescript-eslint/consistent-type-imports (#10913)
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import {EventEmitter as NodeEventEmitter} from 'node:events';
|
||||
|
||||
import {CommonEventEmitter, EventEmitter, EventType} from 'puppeteer';
|
||||
import {
|
||||
type CommonEventEmitter,
|
||||
type EventEmitter,
|
||||
type EventType,
|
||||
} from 'puppeteer';
|
||||
import {expectAssignable} from 'tsd';
|
||||
|
||||
declare const emitter: EventEmitter<Record<EventType, any>>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {ElementHandle} from 'puppeteer';
|
||||
import {type ElementHandle} from 'puppeteer';
|
||||
import {expectNotType, expectType} from 'tsd';
|
||||
|
||||
declare const handle: ElementHandle;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {ElementHandle, JSHandle} from 'puppeteer';
|
||||
import {type ElementHandle, type JSHandle} from 'puppeteer';
|
||||
import {expectNotAssignable, expectNotType, expectType} from 'tsd';
|
||||
|
||||
declare const handle: JSHandle;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import puppeteer, {
|
||||
connect,
|
||||
defaultArgs,
|
||||
executablePath,
|
||||
launch,
|
||||
type connect,
|
||||
type defaultArgs,
|
||||
type executablePath,
|
||||
type launch,
|
||||
} from 'puppeteer';
|
||||
import {expectType} from 'tsd';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user