获取/设置流尚不支持的属性

问题描述 投票:0回答:1

流程不支持以下内容吗?

/* @flow */

module.exports = {
    get rules() {
        return require("./rules").default;
    }
}

为什么我在本地获得get/set properties not yet supported by flow并使其工作here

注意:使用flow-bin v0.60.0

javascript flowtype
1个回答
0
投票

这是在最新版本的流程中修复的,因为默认情况下unsafe.enable_getters_and_setters设置为true。

© www.soinside.com 2019 - 2024. All rights reserved.