我创建一个typings.d.ts文件不具有分型的模块。但是,在声明中访问某些类型将是一件好事。 这似乎是不可能的,当我使用export = declare module 'test' {
export = class Test {
}
export interface ITestObj { // this gives an error because of th
我正在为某些js库编写打字稿。我需要声明任意调用装饰: @model
class User {}
@model()
class User {}
@model('User')
class User {}
我试图用ClassDecorator从lib.es6.d.ts但没有运气: 我当然可以进行手动输入的解决方法: export function model<TFunction ex