【发布时间】:2019-08-23 15:29:59
【问题描述】:
我使用的是流式。
我在一些libdefs 中遇到了变量$Export。我不知道它是什么以及记录在哪里。
对我来说,它似乎类似于Utility Types,但那里没有描述$Export 的问题。
任何机构都可以解释它以及它的来源吗?
declare module "@material-ui/core/AppBar/AppBar" {
import type {ComponentType, Node} from "react";
declare type Color = "inherit" | "primary" | "secondary" | "default";
declare type Position = "fixed" | "absolute" | "sticky" | "static" | "relative";
declare module.exports: ComponentType<{
children?: Node,
className?: string,
classes?: Object,
color?: Color,
position?: Position
}>;
}
declare module "@material-ui/core/AppBar" {
declare module.exports: $Exports<"@material-ui/core/AppBar/AppBar">;
}
【问题讨论】:
标签: javascript flowtype flow-typed