Skip to content

Commit

Permalink
Merge pull request #3 from GoAheadTours/add-typing
Browse files Browse the repository at this point in the history
Add typing to EvergageTestComponent state
  • Loading branch information
peterlazzarino authored Nov 21, 2017
2 parents 4eb7519 + d80451d commit cd37032
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion components/EvergageABTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ export interface IEvergageABTestProps {
timeout: number;
defaultExperience: number;
}
export interface IEvergageABTestState {
selectedExperience: number
}

export default class EvergageABTest extends React.Component<IEvergageABTestProps, any> {
export default class EvergageABTest extends React.Component<IEvergageABTestProps, IEvergageABTestState> {
public static defaultProps: Partial<IEvergageABTestProps> = {
eventPrefix: "EvergageAB",
timeout: 100,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-evergage-ab",
"version": "1.0.6",
"version": "1.0.7",
"description": "React component for integrating Evergage test experiences with your react code.",
"main": "./index.js",
"types": "./index.d.ts",
Expand Down

0 comments on commit cd37032

Please sign in to comment.