| Crates.io | tsmd |
| lib.rs | tsmd |
| version | 0.1.2 |
| created_at | 2020-07-02 12:49:14.953388+00 |
| updated_at | 2020-07-29 03:43:17.526844+00 |
| description | generate markdown tables from type script files |
| homepage | |
| repository | https://github.com/nonnontrivial/blubber.git |
| max_upload_size | |
| id | 260622 |
| size | 29,313 |
This is a CLI that generates .md documentation for interfaces in .ts source files.
This project does not yet support the following desirable features
.ts filescargo install tsmd
Running the following command will create ./input.md and fill it with a markdown table for each interface in ./input.ts.
tsmd -s ./input.ts
When ./input.ts looks like this,
export interface Output<A extends LowLevelAsset<unknown>> {
id: string;
timestamp: string;
data: Omit<A, "">;
}
export interface LowLevelAsset<D> {
filename?: string;
filenames?: string[];
data: D;
}
./input.md will look like the following.
## Output
| Field | Type |
| --- | --- |
| timestamp | `string` |
| id | `string` |
| data | `Omit<A, "">` |
## LowLevelAsset
| Field | Type |
| --- | --- |
| filenames? | `string[]` |
| filename? | `string` |
| data | `D` |