Skip to content

[feat] type safe configurations? #82

@JounQin

Description

@JounQin

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 {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    🤞 phase/openPost is being triaged manually

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions