Initial checklist
Problem
It's not clear how to write type safe configurations like:
import validateLinks from 'remark-validate-links'
export default {
plugins: [[validateLinks, 2]], // how to infer type of `Options` from `validateLinks` here
}
Current solutions
N/A
Proposed solutions
// @ts-check
/** @import { Config } from 'remark' */
/** @type { Config } */
export default {}
Initial checklist
Problem
It's not clear how to write type safe configurations like:
Current solutions
N/A
Proposed solutions