TypeScript 2.1 introduces a Readonly<T> built-in type that effectively makes an immutable version of T that can be accessed and used as though it were a variable of type T
This should be applied to all usages of jsdoc.IDoclet (except for the typedef rewriting) and any other interfaces we use where it's clear that its properties are only meant to be read from and never written to.
This would've caught (and prevented) that unintentional doclet modification that slipped into #77
TypeScript 2.1 introduces a
Readonly<T>
built-in type that effectively makes an immutable version ofT
that can be accessed and used as though it were a variable of typeT
This should be applied to all usages of
jsdoc.IDoclet
(except for the typedef rewriting) and any other interfaces we use where it's clear that its properties are only meant to be read from and never written to.This would've caught (and prevented) that unintentional doclet modification that slipped into #77