IvanJosipovic / TSDParser

C# TypeScript Definition Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TSDParser

Nuget Nuget) codecov

What is this?

This project uses Node.JS and returns a C# representation of the TypeScript Abstract Syntax Tree

Requirements

Node.JS must be installed for this library to work.

How to use

var parsed = await TSDParser.ParseDefinition("""
/**
* interface comment
*/
export interface Test1 {
    /**
    * prop comment
    */
    prop: string;
    method(): void;
}
""");

About

C# TypeScript Definition Parser

License:MIT License


Languages

Language:C# 97.4%Language:JavaScript 2.6%