profile
viewpoint

Ask questionsA class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "undefined"

@folderActions(FOLDER_TYPES.upload)
class FoldersComponent extends PureComponent {
export function folderActions(folderType) {
	return (Component) => { // eslint-disable-line arrow-body-style
		return (props) => {

maybe related

https://github.com/mobxjs/mobx/issues/1352

swc-project/swc

Answer questions AndrewGrachov

yep. decorate constructor

useful!
source:https://uonfu.com/
Github User Rank List