import * as interfaceGroupOne from "./interface-group-one";
import * as interfaceGroupTwo from "./interface-group-two";
export { interfaceGroupOne, interfaceGroupTwo };
src/code/do-stuff.ts
import { interfaceGroupOne, interfaceGroupTwo } from "../interfaces";
//do stuff with interfaces
if ts-undes-export would be run in this situation, output would be
src/interfaces/index.ts : interfaceGroupOne, interfaceGroupTwo
even though both interfaces are imported in the do-stuff.ts file.
In case of
import { interfaceGroupOne, interfaceGroupTwo } from "../interfaces/index";
it will work.
ts-unused-exports: v9.0.5 node: v16.17.0
example:
src/interfaces/index.ts
src/code/do-stuff.ts
if ts-undes-export would be run in this situation, output would be
src/interfaces/index.ts : interfaceGroupOne, interfaceGroupTwo
even though both interfaces are imported in the do-stuff.ts file.In case of
import { interfaceGroupOne, interfaceGroupTwo } from "../interfaces/index";
it will work.Is this how it should work.