feat(loading-bar): export LoadingBarApi (#354)

* 对外导出 LoadingBarApiInjection

* changlog

* change log  export  type

* 修改为LoadingBarApi

* Apply suggestions from code review

* Update CHANGELOG.en-US.md

Co-authored-by: hhf <1170533231@qq.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
This commit is contained in:
seafronthu 2021-07-03 00:08:53 +08:00 committed by GitHub
parent 1fd2a6d919
commit 3b6f4219fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# CHANGELOG
## Pending
### Feats
- `n-loading-bar` export `LoadingBarApi` type
## 2.15.2 (2021-07-02)
### Feats

View File

@ -1,5 +1,11 @@
# CHANGELOG
## Pending
### Feats
- `n-loading-bar` 导出 `LoadingBarApi` 类型
## 2.15.2 (2021-07-02)
### Feats

View File

@ -1,6 +1,7 @@
export { default as NLoadingBarProvider } from './src/LoadingBarProvider'
export type {
LoadingBarProviderInst,
LoadingBarProviderProps
LoadingBarProviderProps,
LoadingBarApiInjection as LoadingBarApi
} from './src/LoadingBarProvider'
export { useLoadingBar } from './src/use-loading-bar'