Reputation: 2847
Is there a different way to import type definitions? I just find kinda odd using the regular import for types and the actual module. For example.
import { FooType, FooFunction, BooType, BooObject } from './FooFighters';
so you can clearly see we have a mix of things here, so I was wondering if there was another way to get one module type definitions other than mixing two things.
Upvotes: 0
Views: 38
Reputation: 99533
How about:
import { FooFunction, BooObject } from './FooFighters';
// types
import { FooType, BooType } from './FooFighters';
Upvotes: 1