@zeplin/extension-model
    Preparing search index...

    Class Context

    An interface to represent execution context provided to an Extension

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    project?: Project

    Current project that extension is enabled for.

    styleguide?: Styleguide

    Current styleguide that extension is enabled for.

    Methods

    • Current value of the option whose name is name.

      Parameters

      • name: string

        Name of the option to be queried.

      Returns string | number | boolean

      Value of the option.

    • Creates a Context instance from a JSON string

      Parameters

      • json: string

        JSON string representing a context

      Returns Context

      A new Context instance