Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

@doomhowl/protovalidate-throw

TypeScript helpers that create Buf protobuf messages and throw when they fail Protovalidate validation.

Usage

import { createValid } from "@doomhowl/protovalidate-throw";
import { UserSchema } from "./gen/user_pb";

const user = createValid(UserSchema, { name: "Ada" });

createValid returns the created message when valid and throws the validation error otherwise. ensureValidMessage validates an existing message.

Development

npm install
npm run build
npm run pack:check

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages