Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.
This repository was archived by the owner on Aug 8, 2020. It is now read-only.

Add a symbol property to get current option chain's option #3

@legendecas

Description

@legendecas

Now it's not possible to access option chains' current opts outside the chain callback, what if we can access the current opts of the option chain with a predefined symbol?

optionChain.optsSymbol = Symbol('option-chain-opts')
const fn = optionChain(optionDefinition, printOptionsAndArgs);
fn.foo[optionChain.optsSymbol] //=> {foo: true};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions