plugin-tls
Version:
plugin-tls 是插件系统相应的工具,可快速地让任何模块具备插件机制
24 lines (13 loc) • 774 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [createDefineMixin](./plugin-tls.createdefinemixin.md)
## createDefineMixin() function
创建定义混合的类型便利函数
**Signature:**
```typescript
export declare function createDefineMixin<T>(): <M>(target: T, mixin: M & ThisType<T & M>) => M & ThisType<T & M>;
```
**Returns:**
<M>(target: T, mixin: M & ThisType<T & M>) => M & ThisType<T & M>
可以用于 定义混合的 类型便利函数
## Remarks
它返回的便利函数的功能与 [defineMixin()](./plugin-tls.definemixin.md) 的功能一样,唯一区别是不再需要接收 target 参数了