Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: 插件类型支持泛型定义 #14141

Merged
merged 4 commits into from
Jul 10, 2023
Merged

Conversation

bigmeow
Copy link
Member

@bigmeow bigmeow commented Jul 10, 2023

这个 PR 做了什么? (简要描述所做更改)

插件类型支持泛型定义

使用场景

// config/plugins.ts
import type { CIOptions } from "@tarojs/plugin-mini-ci";
import { PluginItem } from "@tarojs/taro/types/compile";

const appid = process.env.TARO_APP_ID;
const apiToken = process.env.TARO_APP_API_TOKEN;

export const CIPlugin: PluginItem<CIOptions> = [
  "@tarojs/plugin-mini-ci",
  {
    version: "0.1.0",
    desc: "钉钉小程序",
    dd: {
      appid,
      token: apiToken
    }
  }
];

这个 PR 是什么类型? (至少选择一个)

  • 错误修复(Bugfix) issue: fix #
  • 新功能(Feature)
  • 代码重构(Refactor)
  • TypeScript 类型定义修改(Typings)
  • 文档修改(Docs)
  • 代码风格更新(Code style update)
  • 其他,请描述(Other, please describe):

@ZakaryCode ZakaryCode added the A-typings Area - TypeScript Typings 相关 label Jul 10, 2023
@ZakaryCode ZakaryCode merged commit e2e7a93 into NervJS:next Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typings Area - TypeScript Typings 相关
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants