-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from janslow/feature/typescript-definitions
Add TypeScript definitions
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Component, CSSProperties } from 'react'; | ||
import { Middleware, Reducer, Action } from 'redux'; | ||
|
||
export interface LoadingBarContainerProps { | ||
style?: CSSProperties; | ||
className?: string; | ||
actions?: Object; | ||
updateTime?: number; | ||
maxProgress?: number; | ||
progressIncrease?: number; | ||
} | ||
export default class LoadingBarContainer extends Component<LoadingBarContainerProps, {}> {} | ||
|
||
export interface LoadingBarProps extends LoadingBarContainerProps { | ||
loading?: number; | ||
} | ||
export class LoadingBar extends Component<LoadingBarProps, {}> {} | ||
export class ImmutableLoadingBar extends Component<LoadingBarContainerProps, {}> {} | ||
|
||
export interface MiddlewareConfig { | ||
promiseTypeSuffixes?: string[]; | ||
} | ||
export function loadingBarMiddleware(config?: MiddlewareConfig): Middleware; | ||
|
||
export const loadingBarReducer: Reducer<any>; | ||
export function showLoading(): Action; | ||
export function hideLoading(): Action; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters