Skip to content

Commit

Permalink
fix: Add missing types definition into CarouselStoreInterface (#237)
Browse files Browse the repository at this point in the history
* Add missing import into README.md

* Add missing types definition into CarouselStoreInterface
  • Loading branch information
cbasJS committed Feb 9, 2020
1 parent 1795e10 commit 254573b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -541,7 +541,7 @@ Note that you will likely need to subscribe/unsubscribe to changes in order to t
Example:

```js
import React, { useContext } from 'react';
import React, { useContext, useEffect } from 'react';
import { CarouselContext } from 'pure-react-carousel';

export function MyComponentUsingContext() {
Expand Down
8 changes: 4 additions & 4 deletions typings/index.d.ts
Expand Up @@ -59,11 +59,11 @@ interface CarouselStoreInterface {
readonly subscribe: (func: () => void) => void
readonly unsubscribe: (func: () => void) => void
readonly updateSubscribers: (cb?: (state: CarouselState) => void) => void
readonly subscribeMasterSpinner: (src) => void
readonly unsubscribeMasterSpinner: (src) => false | object
readonly subscribeMasterSpinner: (src: string) => void
readonly unsubscribeMasterSpinner: (src: string) => false | object
readonly unsubscribeAllMasterSpinner: () => void
readonly masterSpinnerSuccess: (src) => void
readonly masterSpinnerError: (src) => void
readonly masterSpinnerSuccess: (src: string) => void
readonly masterSpinnerError: (src: string) => void
readonly setMasterSpinnerFinished: () => void
readonly isMasterSpinnerFinished: () => boolean
}
Expand Down

0 comments on commit 254573b

Please sign in to comment.