UNPKG

nestjs-protobuf-es

Version:

Protobuf-ES integration for NestJS

9 lines (8 loc) 348 B
import { type DescField } from '@bufbuild/protobuf'; /** * Returns true if the field is required by protovalidate or has the proto2 `required` label, or the Edition * feature field_presence = LEGACY_REQUIRED. * * Results for each field are cached for performance reasons. */ export declare function isFieldRequired(field: DescField): boolean;