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

Implement type alias for Nullable #27

Open
jamietanna opened this issue Jan 9, 2024 · 0 comments
Open

Implement type alias for Nullable #27

jamietanna opened this issue Jan 9, 2024 · 0 comments

Comments

@jamietanna
Copy link
Member

Blocked by golang/go#46477:

type Nullable[T any] = nullable.Nullable[T]     // generic type cannot be alias
jamietanna added a commit to sonasingh46/runtime that referenced this issue Jan 9, 2024
We have spun out a separate package, `oapi-codegen/nullable` as a step
towards deepmap/oapi-codegen#1039.

Until we have implemented oapi-codegen#27, we cannot add an explicit type alias in
this package, so we can at least add some tests to cover additional
functionality and expectations that the package should have when
interplaying with `oapi-codegen`.

Co-authored-by: Sebastien Guilloux <sebastien.guilloux@elastic.co>
Co-authored-by: Ashutosh Kumar <ashutosh.kumar@elastic.co>
jamietanna added a commit to sonasingh46/runtime that referenced this issue Jan 9, 2024
We have spun out a separate package, `oapi-codegen/nullable` as a step
towards deepmap/oapi-codegen#1039.

Until we have implemented oapi-codegen#27, we cannot add an explicit type alias in
this package, so we can at least add some tests to cover additional
functionality and expectations that the package should have when
interplaying with `oapi-codegen`.

Co-authored-by: Sebastien Guilloux <sebastien.guilloux@elastic.co>
Co-authored-by: Ashutosh Kumar <ashutosh.kumar@elastic.co>
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

No branches or pull requests

1 participant