0.0.12 • Published 4 years ago

@masons/generate-types v0.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

@masons/generate-types

TODO: description

Usage

作为webpack插件的使用方式

插件使用方式 new GenerateDtsPlugin(options)

options选项列表

  • output: 生成的.d.ts文件存储的位置
  • savedPath: .d.ts文件存储的路径
  • filename: .d.ts文件名(带.d.ts的全名)
  • isDefaultReplace: 是否是默认替换
  • moduleName: 模块名
  • customReplace: 自定义替换函数,默认返回原本内容
  • withVersion 是否带版本

默认output由 savedPath + filename进行组合

const { GenerateDtsPlugin } = require('@masons/generate-types')
module.exports = {
  ...
  plugins: [
    new GenerateDtsPlugin({
      savedPath: 'dist',
      filename: 'base.d.ts'
    })
  ]
}
0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago