Skip to content

refactor(v2): Typescript support in our theme plugin #2470

Description

@fanny

💥 Proposal

(A clear and concise description of what the proposal is.)
I know that we already have this for some plugins, like docusaurus, docs-plugin, blog-plugin but
Typescript is getting more popular over the years, in Front End Development. You can have a idea of the market size here.
Althought many people can complain about the increasing of time in the development, I tend to think that the benefits provided by have a type system overcome this time. Here are some advantages:

  1. Code is easier to understand: It's easy to know which params are expected and returned
  2. Useful to find bugs: You can have problems passing null values, or an object in a function that expects an array
  3. Easier to debug
  4. Aids the developer in having the correct workflow

If you have interest, I can work on this.

Have you read the Contributing Guidelines on issues?

yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: advancedIssues that are complex, e.g. large scoping for long-term maintainability.mlhMajor League Hacking FellowshipproposalThis issue is a proposal, usually non-trivial change

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions