Skip to content

Export DecoratorFunction #506

Closed
Closed

Description

Is your feature request related to a problem? Please describe.
I want to use DecoratorFunction type. However, this type is not exported from the library.

Describe the solution you'd like
import { DecoratorFunction } from @storybook/react-native

Describe alternatives you've considered

type Temp = Meta["decorators"];
type ExtractDecoratorFunction<T> = T extends (infer R)[] ? R : never;
type DecoratorFunction = ExtractDecoratorFunction<Temp>;

or

import {DecoratorFunction} from "@storybook/csf/dist/story"

Are you able to assist bring the feature to reality?
maybe?

Additional context
N/A

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