2026-08-19 16:32:03 +02:00
2026-08-19 15:46:16 +02:00
2026-08-19 15:46:16 +02:00
2026-08-19 15:46:16 +02:00
2026-08-19 15:46:16 +02:00
2026-08-19 15:46:16 +02:00
2026-08-19 16:32:03 +02:00
2026-08-19 15:46:16 +02:00
2026-08-19 15:46:16 +02:00
2026-08-19 15:46:16 +02:00

@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
S
Description
No description provided
Readme MIT
32 KiB
0 Stars 2 Watchers 0 Forks
Languages
TypeScript 100%