• Helper for assigning only allowed properties of value object:

    • safe, can't set unsupported properties
    • no need to state property name thrice
    • doesn't leave undefineds

    Type Parameters

    • T extends {}

    Parameters

    • object: T
    • properties: any = {}
    • allowed: (keyof T)[] | Set<keyof T>

    Returns void

Generated using TypeDoc