aozhiwei 0a973d12e3 1
2022-01-27 17:32:21 +08:00

13 lines
550 B
TypeScript

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