Skip to content

feat(core): mark installed plugins - #2561

Open
Blackgan3 wants to merge 2 commits into
masterfrom
feat-add-plugin-installed-flag
Open

feat(core): mark installed plugins#2561
Blackgan3 wants to merge 2 commits into
masterfrom
feat-add-plugin-installed-flag

Conversation

@Blackgan3

Copy link
Copy Markdown
Collaborator
  • plugin use 增加 installed 标识

Comment thread packages/core/@types/index.d.ts Outdated
__installed?: boolean
}

export type Plugin = PluginInstallFunction | {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改成这种不就好了

type Plugin = (PluginInstallFunction | {
  install: PluginInstallFunction
}) & {__installed?: boolean}

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants