react-cosmos
Version:
CLI for running React Cosmos inside webpack-powered apps
14 lines (13 loc) • 479 B
TypeScript
import React from 'react';
import { FixtureId } from 'react-cosmos-shared2/renderer';
import { CosmosConfig } from './config/shared';
declare type Args = {
cosmosConfig: CosmosConfig;
};
declare type RenderableFixture = {
fixtureId: FixtureId;
getElement: () => React.ReactElement<any>;
};
export declare const getFixtures: (args: Args) => Promise<RenderableFixture[]>;
export declare function getFixturesSync({ cosmosConfig }: Args): RenderableFixture[];
export {};