##// END OF EJS Templates
Compatibility with dojo-typings package
cin -
r21:b1e622a3b266 default
parent child
Show More
@@ -1,10 +1,11
1 1 import declare = require("dojo/_base/declare");
2 2 import { each } from "@implab/core-amd/safe";
3 3 import { Constructor } from "@implab/core-amd/interfaces";
4 import dojo = require("dojo/_base/kernel");
4 5
5 6 // declare const declare: any;
6 7
7 type DeclareConstructor<T> = declare.DeclareConstructor<T>;
8 type DeclareConstructor<T> = dojo._base.DeclareConstructor<T>;
8 9
9 10 export interface AbstractConstructor<T = {}> {
10 11 prototype: T;
@@ -1,6 +1,7
1 1 import { Handle } from "dojo/interfaces";
2 2 import _WidgetBase = require("./_WidgetBase");
3 3 import declare = require("dojo/_base/declare");
4 import dojo = require("dojo/_base/html");
4 5
5 6 declare module "./_WidgetBase" {
6 7 interface _WidgetBase {
@@ -81,7 +82,7 interface _AttachMixin {
81 82 destroyRendering(preserveDom?: boolean): void;
82 83 }
83 84
84 interface _AttachMixinConstructor extends declare.DeclareConstructor<_AttachMixin> { }
85 interface _AttachMixinConstructor extends dojo._base.DeclareConstructor<_AttachMixin> { }
85 86
86 87 declare const _AttachMixin: _AttachMixinConstructor;
87 88 export = _AttachMixin;
@@ -1,11 +1,12
1 import dojo = require("./kernel");
2
1 3 declare module "./kernel" {
2 4 interface Dojo {
3 declare: declare.Declare;
5 declare: dojo._base.Declare;
4 6 safeMixin: typeof declare.safeMixin;
5 7 }
6 }
7 8
8 declare namespace declare {
9 namespace _base {
9 10 interface DeclareCreatedObject {
10 11 declaredClass: string;
11 12
@@ -134,5 +135,8 declare namespace declare {
134 135 }
135 136 }
136 137
137 declare const declare: declare.Declare;
138 }
139
140
141 declare const declare: dojo._base.Declare;
138 142 export = declare;
General Comments 0
You need to be logged in to leave comments. Login now