UNPKG

@typescript-eslint/eslint-plugin

Version:
13 lines 461 B
import type { Definition, ImportBindingDefinition } from '@typescript-eslint/scope-manager'; /** * Determine whether a variable definition is a type import. e.g.: * * ```ts * import type { Foo } from 'foo'; * import { type Bar } from 'bar'; * ``` * * @param definition - The variable definition to check. */ export declare function isTypeImport(definition?: Definition): definition is ImportBindingDefinition; //# sourceMappingURL=isTypeImport.d.ts.map