gatsby-theme-zh
Version:
30 lines (29 loc) • 816 B
TypeScript
import React from 'react';
export interface PlayGroundItemProps {
source: string;
examples: PlayGroundItemProps[];
babeledSource: string;
absolutePath?: string;
relativePath?: string;
screenshot?: string;
recommended?: boolean;
filename: string;
title?: string;
location?: Location;
playground?: {
container?: string;
playgroundDidMount?: string;
playgroundWillUnmount?: string;
dependencies?: {
[key: string]: string;
};
htmlCodeTemplate?: string;
};
}
interface PlayGroundsProps {
examples: PlayGroundItemProps[];
currentExample: PlayGroundItemProps;
updateCurrentExample: (val: PlayGroundItemProps) => void;
}
declare const PlayGrounds: React.FC<PlayGroundsProps>;
export default PlayGrounds;