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

Explain applyDecorators() for a function prototype #150

@jslz

Description

@jslz

hi, any chance somebody has example code for how to use applyDecorators() on a non-class-method stand-alone kind of function? I don't know what key to use for the property.

The docs only say:

// This works on regular function prototypes
// too, like `function Foo() {}`
applyDecorators(Foo, {
  getFoo: [autobind]
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions