Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS fixes #22

Merged
merged 1 commit into from
Aug 2, 2019
Merged

TS fixes #22

merged 1 commit into from
Aug 2, 2019

Conversation

thompsongl
Copy link

This was easier than describing the changes 😄

@@ -5,3 +5,5 @@ export { EuiSteps } from './steps';
export { EuiSubSteps } from './sub_steps';

export { EuiStepsHorizontal } from './steps_horizontal';

export { EuiStepStatus } from './step_number';
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kibana imports and uses this type directly

@thompsongl thompsongl mentioned this pull request Aug 2, 2019
8 tasks
<EuiI18n
token="euiStep.ariaLabel"
default={({ status }) => {
default={({ status }: { status?: EuiStepStatus }) => {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm honest, I have no idea why this resolves the errors

@@ -63,27 +61,27 @@ describe('EuiStepHorizontal', () => {

describe('onClick', () => {
test('is called when clicked', () => {
const onClickHandler = sinon.stub();
const onClickHandler = jest.fn();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just bypassing the need to import and @ts-ignore sinon

Copy link
Owner

@cchaos cchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!

@cchaos cchaos merged commit 8e13356 into cchaos:fix-and-ts-steps Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants