0.1.20 • Published 3 years ago

@davidenke/mkdocs-ts v0.1.20

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

MkDocs to Typescript Converter

This has been thrown together in a sleepless night 🌙.

After digging into the georgeous Scriptable app I wanted to improve the developer experience by providing types for the Scriptable API. So all efforts have been a bit biased to my needs to parse the provided documentation.

Improvements

Some missing things that would be nice once another sleepless night comes around:

  • some unit tests
  • using e.g. ts-morph to build the AST
  • running it against some other generated docs
  • typings for the mkdocs json format (is there at least some schema out there?)

Installation

npm i -D @davidenke/mkdocs-ts

or

npm install --save-dev @davidenke/mkdocs-ts

or

pnpm install --dev @davidenke/mkdocs-ts

or

yarn add --dev @davidenke/mkdocs-ts

Usage

mkdocs-ts <input: file path or URL> <output: path to target file>

npm run mkdocs-ts ./example.json example.d.ts

or

npm run mkdocs-ts https://some.remote/example.json example.d.ts
0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago