UNPKG

jsdoc-typeof-plugin

Version:

[![Build Status](https://travis-ci.org/cancerberoSgx/jsdoc-typeof-plugin.png?branch=master)](https://travis-ci.org/cancerberoSgx/jsdoc-typeof-plugin) [![Dependencies](https://david-dm.org/cancerberosgx/jsdoc-typeof-plugin.svg)](https://david-dm.org/cancer

9 lines (8 loc) 257 B
var regex = /\{\s*typeof\s+([^\s]+)\s*\}/g exports.handlers = { jsdocCommentFound: (e) => { e.comment = (e.comment || '').replace(regex, (typeExpression, className, index, all) => { return '{Class<'+className+'>}' }) } }