Closed
Description
Repro
utils.ts:
export type ResponsiveValue<T = string | number | undefined> =
| T
| { [key: number]: T };
export type ResponsiveObject<T> = {
[K in keyof T]: ResponsiveValue<T[K]>
};
FlexLayout.ts:
import * as CSS from 'csstype';
import { ResponsiveObject } from './utils';
export type Props = ResponsiveObject<{
flexDirection?: CSS.FlexDirectionProperty;
flexWrap?: CSS.FlexWrapProperty;
}>;
Expected Result
No warnings should be emitted by ESLint.
Actual Result
[eslint] ResponsiveObject not found in './utils' [import/named]
on line 2 of FlexLayout.ts
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
1.1.0 |
@typescript-eslint/parser |
1.1.0 |
TypeScript |
3.2.4 |
ESLint |
5.12.1 |
node |
10.15.0 |
npm |
6.4.1 |
Metadata
Metadata
Assignees
Labels
Issues waiting for a reply from the OP or another partyIssues waiting for a reply from the OP or another partyIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin