C:\T\tsrc>npm ls
C:\T\tsrc
`-- [email protected]
C:\T\tsrc>type example2.js
"use strict";
/**
* Map of string to boolean or Object.
*
* @typedef {Object.<string, boolean | Object>} MyMap
*/
C:\T\tsrc>node_modules\.bin\tsc --allowjs --declaration --outdir out example2.js
C:\T\tsrc>type out\example2.d.ts
/**
* Map of string to boolean or Object.
*/
type MyMap = {
[x: string]: any;
};
C:\T\tsrc>