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: improve the VertexMixin type #211

Merged
merged 2 commits into from
Jul 7, 2023

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Jul 2, 2023

The methods defined in the VertexMixin type were not documented.
The signature of the insertVertex method was using a spread any parameter, so it provided no guidance nor guard.

Instead, the type now declares the various form of the methods with the right signature.

Notes

The new VertexParameters type is inspired by https://github.com/jwyGithub/maxGraph-composition-api/blob/cdf7cf0898285e39e2e51c4efa9503f90288f967/packages/graph-draw/src/index.ts#L15

The methods defined in the `VertexMixin` type were not documented.
The signature of the `insertVertex` method was using a spread `any` parameter, so it provided no guidance nor guard.
Instead, the type now declares the various form of the methods with the right signature.
@tbouffard tbouffard added the enhancement New feature or request label Jul 2, 2023
@tbouffard tbouffard marked this pull request as ready for review July 2, 2023 21:51
@tbouffard tbouffard merged commit cdd8830 into development Jul 7, 2023
3 checks passed
@tbouffard tbouffard deleted the feat/improve_VertexMixin_type branch July 7, 2023 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant