Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.
This repository has been 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

Open
@legendecas

Description

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};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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