@irwinproject/storybook-addon-tsdoc
Version:
Generate mdx documentation from your typescript!
10 lines (9 loc) • 485 B
TypeScript
import { Type } from "ts-morph";
import { Nodely } from "./types";
/**
* Diving down to the underlying type provides lower level access to the typing however ts-morph provides a wonderul interface via their Node class. Since it completely crawls the Source File it seems more suitable to get the dclaration that is being referenced
* @param t
* @returns
*/
export declare const typeFromType: (t: Type | undefined) => string;
export declare const nodesig: (node: Nodely) => string;