I have created multiple interfaces and want to ship them all from a common index.ts
file as shown below:
--pages
------index.interface.ts
--index.ts
Now In my index.ts
I am exporting something like:
export { timeSlots } from './pages/index.interface';
whereas my index.interface.ts
look like this:
export interface timeSlots {
shivam: string;
daniel: string;
jonathan: string;
}
Now when I try to do so, it says me:
Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.ts(1205)
Not sure why this error shows up, can someone help?