UNPKG

550 BTypeScriptView Raw
1/**
2 * Defines properties on a `Object`. It make the assumption that underlying data is binary.
3 * @param self the `Object` to define properties on
4 * @param fields an array fields to define. Fields can contain:
5 * * `name` - the name of the properties
6 * * `length` - the number of bytes the field can have
7 * * `allowLess` - if the field can be less than the length
8 * * `allowEmpty`
9 * @param data data to be validated against the definitions
10 * @deprecated
11 */
12export declare const defineProperties: (self: any, fields: any, data?: any) => void;