我为自动生成的库输入以下内容。
/// <reference path="../node_modules/emotion/types/index.d.ts" />
/// <reference types="react" />
import * as theme from "./theme";
import * as utils from "./utils";
import * as components from "./components";
declare const _default: {
theme: typeof theme;
utils: typeof utils;
Button: React.StatelessComponent<import("@src/components/typings/Button").ButtonProps>;
Calendar: typeof components.Calendar;
Controls: typeof components.Controls;
DropDown: typeof components.DropDown;
Input: typeof components.Input;
Modal: typeof components.Modal;
Options: typeof components.Options;
Search: React.StatelessComponent<import("@src/components/typings/Search").SearchProps>;
Select: React.StatelessComponent<import("@src/components/typings/Select").SelectProps>;
Slider: React.StatelessComponent<import("@src/components/typings/Slider").SliderProps>;
Stepper: typeof components.Stepper;
Tag: React.StatelessComponent<import("@src/components/typings/Tag").TagProps>;
Toast: typeof components.Toast;
TypeAhead: typeof components.TypeAhead;
SideBar: React.StatelessComponent<import("@src/components/typings/Sidebar").SidebarProps>;
};
export default _default;
当我使用
时import { Button } from "library"
这给我一个错误,提示Button
属性不存在。有人可以告诉我这是怎么回事吗?