这是indexloc提供的服务,不要输入任何密码
Skip to content

expose the Plugin type #1233

@aleclarson

Description

@aleclarson

Currently, the Plugin type is not exported, so I can't do:

function myPlugin(): Plugin {  }

The workaround is to use this type:

type Plugin = Exclude<import('tsup').Options['plugins'], void>[number]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions