grantila / grantila/suretype

Type-ensured validator should assert return type

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.