@types/protobuf-fieldmask
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

Installation

npm install --save @types/protobuf-fieldmask

Summary

This package contains type definitions for protobuf-fieldmask (http://github.com/kibertoad/protobuf-fieldmask).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/protobuf-fieldmask.

index.d.ts

export type WithFieldMask<T> = { [K in keyof T]?: WithFieldMask<T[K]> | undefined };
/**
 * Creates a new object that copies fields present in field mask from specified source object
 * @param sourceObject - object to apply field mask to
 * @param fieldMask
 * @returns new object created by applying field mask on source object or original entity if source is not an object
 */
export function applyFieldMask<T>(sourceObject: T, fieldMask: readonly string[]): WithFieldMask<T>;
/**
 * Generates field mask that includes all non-function own properties on specified object
 * @param object - object to generate field mask from
 * @returns - generated field mask
 */
export function generateFieldMask(object: unknown): string[];

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Jorge Yero Salazar.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/protobuf-fieldmask

Weekly Downloads

4,128

Version

1.2.2

License

MIT

Unpacked Size

4.08 kB

Total Files

5

Last publish

Collaborators

  • types