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

feat(core-react): add typings to index.d.ts for Container, Grid, & Cell #218

Merged
merged 2 commits into from
Sep 4, 2019

Conversation

Morgantheplant
Copy link
Contributor

https://jira.weworkers.io/browse/WEB-815

adds typings for Container, Grid and Cell components

export type CellProps = {
push?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
span?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
} & React.HTMLProps<HTMLElement>;;
Copy link
Contributor

Choose a reason for hiding this comment

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

woops ;; but I'll fix this for you!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch! Surprised this wasn't caught by a commit hook


declare const Cell: React.FC<CellProps>;

export { Container, Grid, TextField };
Copy link
Contributor

Choose a reason for hiding this comment

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

And Cell haha

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was intentional: #213 (comment) I am ok with exporting it though

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh ok cool!

@seimithwework seimithwework merged commit 792916c into master Sep 4, 2019
@delete-merged-branch delete-merged-branch bot deleted the mcp/grid_components branch September 4, 2019 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants