Skip to content

Commit

Permalink
fix: update typescript declaration file for TS 3.9.5 (#119)
Browse files Browse the repository at this point in the history
* Update typescript declaration file for TS 3.9.5

* disable coveralls

* use cycjimmy/semantic-release-action
  • Loading branch information
limonte authored Jul 12, 2020
1 parent 1ff9cce commit 757ab23
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ jobs:
run: yarn test

- name: Run automated release process with semantic-release
if: github.event_name == 'push' && contains(github.ref, 'master')
if: github.event_name == 'push'
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
sudo npm i -g [email protected] @semantic-release/changelog@3 @semantic-release/[email protected] @semantic-release/[email protected]
semantic-release

- name: Report coverage to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Report coverage to coveralls.io
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions src/sweetalert2-react-content.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ interface ReactSweetAlert {
(title?: ReactElementOr<'title'>, message?: ReactElementOr<'html'>, icon?: SweetAlertIcon): Promise<SweetAlertResult>;

(options: ReactSweetAlertOptions): Promise<SweetAlertResult>;

fire(title?: ReactElementOr<'title'>, message?: ReactElementOr<'html'>, icon?: SweetAlertIcon): Promise<SweetAlertResult>;

fire(options: ReactSweetAlertOptions): Promise<SweetAlertResult>;
}

type SweetAlert2 = typeof swal;
Expand Down

0 comments on commit 757ab23

Please sign in to comment.