Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

全局声明的问题 #18

Open
yuleiQ opened this issue Apr 22, 2021 · 0 comments
Open

全局声明的问题 #18

yuleiQ opened this issue Apr 22, 2021 · 0 comments

Comments

@yuleiQ
Copy link

yuleiQ commented Apr 22, 2021

请问local.d.ts中window的声明前面为什么加export ={}

我想实现扩展window的操作,并可以declare module 'xxx'的操作,放在一个xxx.d.ts文件中会报错

export = {}
declare global {
  interface Window{
    __REDUX_DEVTOOLS_EXTENSION_COMPOSE__: Function
  }
}
declare module '*.png'; // 在import引入的时候会报错没有定义

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant