General Proposal
Our code-generator require randoms.config.json to read the config provided by the user.
But there is no code intelligence for that I propose to have a JS file instead of a JSON file we can use TS type annotation comment to enable code intelligence.
Example
export type from our package
export default interface ConfigType { /* Config Type */}
randoms.config.js will looks like
/** @type {import('package').ConfigType} */
module.exports = { /* config */ }
General Proposal
Our
code-generatorrequirerandoms.config.jsonto read the config provided by the user.But there is no code intelligence for that I propose to have a
JSfile instead of aJSONfile we can useTS type annotationcomment to enable code intelligence.Example
export type from our package
randoms.config.jswill looks like