generate markdown tables from TypeScript interfaces
Hobby project in early development for auto-generating docs for TypeScript files.
interface
sNote: This is not published to Cargo yet.
git clone git@github.com:nonnontrivial/tsmd.git
first.
Running the following command will create ./input.md
and fill it with markdown tables according to the interface
s in ./input.ts
.
```shell cargo r -- -s ./input.ts
```
When ./input.ts
looks like this,
```typescript export interface Output> { id: string; timestamp: string; data: Omit; }
export interface LowLevelAsset
```
./input.md
will look like the following.
| Field | Type |
| --- | --- |
| timestamp | string
|
| id | string
|
| data | Omit<A, "">
|
| Field | Type |
| --- | --- |
| filenames? | string[]
|
| filename? | string
|
| data | D
|