0.27.0 (2021-08-13)
Features
Release notes
Update react-docgen-typescript and add support for customising the parser config by specifying reactDocgenTypescriptConfig in your playroom.config.js.
module.exports = {
...,
reactDocgenTypescriptConfig: {
propFilter: (prop, component) => {
...
}
}
};Full change list:
- Update
react-docgen-typescriptto^2.1.0 - Update
typescriptto^4.3.2 - Support customising the docgen parser config
- Default parser config now supports TS enums and literal unions
- Default prop filtering no longer omits
className, onlychildren. Although you can now customise the thepropFilteras per example above - Enable
noErrorTruncationon top of users tsconfig to ensure prop values are not truncated - Removed internal examples folder due to rot and maintenance overhead