-
Notifications
You must be signed in to change notification settings - Fork 1
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
[#256] Add schemata-ts Newtypes #259
Conversation
a51b56e
to
9c5759f
Compare
Pull Request Test Coverage Report for Build 4169205174
💛 - Coveralls |
9c5759f
to
f416478
Compare
scripts/generate-schemables.ts
Outdated
export const instanceComment: ( | ||
module: SchemableTypeclasses[0], | ||
version: SchemableTypeclasses[3], | ||
) => ts.JSDoc = (module, verision) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
`* ${ | ||
typeclassName === 'Type' ? '@deprecated\n' : '' | ||
}@since ${version}\n\n@category Model`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't this produce a comment like
/**
* @deprecated
@since 1.4.0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it gets fixed by prettier. I'm not sure if there's a way around that 🤔
src/brand.ts
Outdated
* @since 1.4.0 | ||
* @category Model | ||
*/ | ||
export const fromRefinement = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove this, it doesn't make much sense to have
41fe693
to
b7a524d
Compare
b7a524d
to
054290a
Compare
Adds:
brand
module: brand reexport, and schemata-ts Branding (backwards compatible)newtype
module: schemata-ts specific newtypes (backwards compatible)iso
module: schemata-ts isomorphisms (compatible with monocle-ts experimental)Closes #256