Skip to content

The typescript team has been working hard to make JsDoc even better by facilitating full TS checking through jsDoc alone. This is a proof of that utilizing recursive and template types

Notifications You must be signed in to change notification settings

Trapfether/jsdoc-TS-equivalent-proof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsdocExample

Jsdoc is powerful. Few people have kept up to date with the new developments. Particularly the collaborative work between the Typescript, JSDoc, and Visual Studio Code teams. This is a demonstration of the power that jsdoc now has thanks to the hard work of these teams.

Usage

Clone this repo to your local machine and use an up to date version of Visual Studio Code to open the folder. That's it.

What you should see is 5 errors in the src/index.js file. These are typescript type errors being picked up in regular js files. This repo is utilizing template types, recurisve types, the infer directive, and more.

About

The typescript team has been working hard to make JsDoc even better by facilitating full TS checking through jsDoc alone. This is a proof of that utilizing recursive and template types

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published