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

Handle enums and const/as assertions #517

Merged
merged 2 commits into from
Aug 24, 2023

Conversation

bitgopatmcl
Copy link
Contributor

Adds support for the following constructs:

enum Foo {
  Foo,
  Bar
}

export const FooCodec = t.keyof(Foo);
const foo = {
  foo: t.number
} as const;

export const FooCodec(foo);
import * as t from 'io-ts';
const props = { foo: t.number } as { foo: t.NumberC };
export const FOO = t.type(props);

@bitgopatmcl bitgopatmcl requested a review from a team as a code owner August 23, 2023 21:02
@bitgopatmcl bitgopatmcl force-pushed the deref-cleanup branch 2 times, most recently from 1ffbe4d to 0d1f819 Compare August 23, 2023 22:58
@andrew-scott-fischer andrew-scott-fischer merged commit 9f50ec7 into BitGo:master Aug 24, 2023
3 checks passed
@github-actions
Copy link

🎉 This PR is included in version @api-ts/openapi-generator@2.2.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version @api-ts/typed-express-router@1.1.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version @api-ts/express-wrapper@1.0.21 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version @api-ts/superagent-wrapper@1.1.12 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

🎉 This PR is included in version @api-ts/io-ts-http@2.4.1-beta.1 🎉

The release is available on @api-ts/io-ts-http

Your semantic-release bot 📦🚀

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.

2 participants