luka1199 / ts-declaration-file-generator-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript declaration files generator service

Installation

Docker

Install Docker. https://docs.docker.com/install/

Install

Clone this repository and then run:

./install.sh

Usage

Generate a Typescript declaration file from Javascript code

./bin/run.sh [NPM-MODULE-NAME] [OUTPUT_DIRECTORY]

Example

./bin/run.sh abs /tmp/results

/tmp/results/abs/index.d.ts:

export = Abs;

declare function Abs(input: string): string;

About

License:MIT License


Languages

Language:Shell 100.0%