@workday/canvas-kit-docs
Version:
Documentation components of Canvas Kit components
18 lines • 772 B
TypeScript
import React from 'react';
import { ExportedSymbol, Value } from '../docgen/docTypes';
export declare const GithubUrl: React.Context<string>;
export declare const GithubBranch: React.Context<string>;
export declare const StorybookUrl: React.Context<string>;
export declare const docs: ExportedSymbol<Value>[];
export declare function getDoc(name: string, fileName?: string): ExportedSymbol<Value> | undefined;
type Unsubscribe = () => void;
type CallbackFn = (doc: ExportedSymbol) => void;
type Subscription = {
name: string;
fileName?: string;
callback: CallbackFn;
};
export declare function subscribe(listener: Subscription): Unsubscribe;
export declare function updateDocs(updatedDocs: ExportedSymbol[]): void;
export {};
//# sourceMappingURL=docs.d.ts.map