2.3.0 • Published 1 year ago

rollup-plugin-add-global-ts v2.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

English | 简体中文

rollup-plugin-add-global-ts

NPM version NPM Weekly Downloads License

typescript will not add the types in the global declarations of the project to the compiled declaration file when it is compiled, so that projects with global declarations lose some of their declarations when they are compiled, which may result in errors when other projects refer to them.

This plugin adds the contents of the globally declared d.ts file to the compiled d.ts file at the end of the rollup compilation

Example

import addGlobalTs from 'rollup-plugin-add-global-ts'

export default [
  {
    // pass in an array of corresponding d.ts file paths to the function addGlobalTs
    plugins: [addGlobalTs(['src/typings.d.ts'])],
  },
]
2.3.0

1 year ago

1.0.0

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago