Type-ensured validator should assert return type
Open
- Dominant language
- TypeScript
- Stars
- 505
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Hi there!
Currently I have to manually do this:
```ts
export const assertPostMetaData: (
data: unknown
) => asserts data is PostMetaData = compile(postMetaDataSchema, {
ensure: true,
});
```
Would be nice if this type definition could be baked into suretype. I might be able to provide a PR :)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.