Skip to content

全局声明的问题 #18

@Leyu801

Description

@Leyu801

请问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引入的时候会报错没有定义

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions