deconstruct-js

Home > deconstruct-js > ComplexDeconstructor

ComplexDeconstructor interface

The object or instance returned by your function, with information on the deconstructor and the deconstructor value, if it contains more than one value.

Signature:

interface ComplexDeconstructor<T, K extends keyof T = Extract<keyof T, T extends Array<any> ? number : string>> extends Deconstructor<T> 

Methods

Method Description
offsetForElement(key) Returns the offset where a value is expected to be found, or undefined if unknown ahead of time.