Visitar URL original
Add a way to create plugins in TypeScript · Issue #2102 · postcss/postcss · GitHub
Skip to content

Add a way to create plugins in TypeScript #2102

Description

@ai

Right now plugin need to be a function with fn.postcss = 1 marker.

But in TS there is no way to create function and sen key in the same manner. So create plugin is no easy.

Activity

  1. added this to the 9.0 milestone on Jun 28, 2026
  2. evgenyponomarev commented on Aug 19, 2026

    @evgenyponomarev

    I’ll implement a typed one-argument postcss.plugin(creator) helper that marks and returns the creator function, while preserving the legacy two-argument API, and open a focused PR with runtime, type, and documentation coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions