Have a look at this query that's quite similar to mine: https://github.com/Microsoft/TypeScript/issues/4529
Consider the following code snippet:
//exported imports
export {ISumanOpts, IGlobalSumanObj} from 'suman-types/dts/global';
export {ITestCaseParam} from 'suman-types/dts/test-suite';
export {IHookParam} from 'suman-types/dts/test-suite';
export {IDescribeFn} from 'suman-types/dts/describe';
export {ItFn, ITestDataObj} from 'suman-types/dts/it';
export {IBeforeFn} from 'suman-types/dts/before';
export {IBeforeEachFn} from 'suman-types/dts/before-each';
export {IAfterFn} from 'suman-types/dts/after';
export {IAfterEachFn} from 'suman-types/dts/after-each';
export {DefineObjectContext as IDefObjCtx} from "./test-suite-helpers/define-options-classes";
export {DefineObjectTestCase as IDefObjTestCase} from "./test-suite-helpers/define-options-classes";
export {DefineObjectAllHook as IDefObjAllHook} from "./test-suite-helpers/define-options-classes";
export {DefineObjectEachHook as IDefObjEachHook} from "./test-suite-helpers/define-options-classes";
export namespace s {
// ! The goal is to consolidate all the above exported items into a namespace here
}
Is there a method to utilize namespace
or module
to export items as part of a namespace rather than exporting them individually?
I have tried something similar to this:
https://i.sstatic.net/FILkj.png
Therefore, I attempted converting them to imports and then storing them in a const like this:
https://i.sstatic.net/kJG36.png
However, it seems some of my declarations are interfaces, not classes, leading to the error message "only refers to a type, but is being used as a value here".