tuil
ReferencePackages@mwillbanks/tuil-testingAPI

TuilStoryDefinition

interface exported by @mwillbanks/tuil-testing.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-testing.

export interface TuilStoryDefinition<
  TProps,
  TStories extends Readonly<Record<string, TuilStory<TProps>>>,
> {
  readonly component: ComponentType<TProps>;
  readonly stories: TStories;
}

Members

MemberTypeRequiredDescriptionRelated types
componentComponentType<TProps>YesThe component member uses the ComponentType<TProps> contract.
storiesTStoriesYesThe stories member uses the TStories contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-testing

On this page