@logicflow/dumi-theme-simple
Version:
Simple website theme based on dumi2.
12 lines (11 loc) • 460 B
TypeScript
import { Demo, ExampleTopic } from '../../types';
/**
* 将数据结构转化成 map,便于后续检索的速度
* @param exampleTopics
* @returns
*/
export declare function getExampleTopicMap(exampleTopics: ExampleTopic[]): Map<string, Demo>;
/**
* 从 Context 信息中,获取到 Example 相关的信息,用于页面渲染
*/
export declare function getDemoInfo(exampleTopics: ExampleTopic[], topic: string, example: string, demo: string): Demo;