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

[Flow] Add missing export types to style/style_layer/* #11506

Merged
merged 3 commits into from
Feb 12, 2022

Conversation

stepankuzmin
Copy link
Contributor

A part of #11426. Add missing export types to a style/style_layer/*

@stepankuzmin stepankuzmin added the skip changelog Used for PRs that do not need a changelog entry label Feb 12, 2022
@stepankuzmin stepankuzmin requested a review from mourner February 12, 2022 10:05
identifier?: string
};

export type ValidationErrors = $ReadOnlyArray<ValidationError>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We may also use $Shape instead of making the ValidationError.line optional.

export type ValidationErrors = $ReadOnlyArray<$Shape<ValidationError>>;

Also it seems that this type may be replaced with the style-spec ValidationError

Copy link
Member

@mourner mourner left a comment

Choose a reason for hiding this comment

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

👍 apart from a new nits

src/style/create_style_layer.js Outdated Show resolved Hide resolved
src/style/style_layer/sky_style_layer.js Outdated Show resolved Hide resolved
stepankuzmin and others added 2 commits February 12, 2022 13:28
Co-authored-by: Vladimir Agafonkin <agafonkin@gmail.com>
@stepankuzmin stepankuzmin merged commit 2730cf5 into main Feb 12, 2022
@stepankuzmin stepankuzmin deleted the flow/style_layers branch February 12, 2022 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog Used for PRs that do not need a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants