Skip to content

v0.4.0

Compare
Choose a tag to compare
@peterpeterparker peterpeterparker released this 17 Mar 10:44
· 11 commits to main since this release

Features

  • Enable strictNullChecks per default when creating TypeScript compiler program. This allow exporting parameters and results that unions null or undefined.

For example:

/**
 * Markdown should handle ` | ` for the type.
 */
export const genericType = <T>(value: [] | [T]): T | undefined => value?.[0];

Previously did not parsed the result | undefined in the resulting documentation.