added atom/atom.d.ts and dependencies...

This commit is contained in:
vvakame
2014-04-15 01:56:00 +09:00
parent 7b588129bc
commit cf3934dd97
11 changed files with 1663 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
/// <reference path="./mixto.d.ts" />
import Mixin = require("mixto");
interface ISampleStatic extends Mixto.IMixinStatic {
new ():ISample;
}
interface ISample {
test():string;
}
declare var Sample: ISampleStatic;
Sample.includeInto(Function);
Sample.extend({});
+16
View File
@@ -0,0 +1,16 @@
// Type definitions for mixto
// Project: https://github.com/atom/mixto
// Definitions by: vvakame <https://github.com/vvakame/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module Mixto {
interface IMixinStatic {
includeInto(constructor:any):void;
extend(object:any):void;
}
}
declare module "mixto" {
var _tmp:Mixto.IMixinStatic;
export = _tmp;
}