Merge pull request #9749 from samchon/master

TypeScript-STL & Samchon-Framework, right sentence of import & export
This commit is contained in:
Mohamed Hegazy
2016-06-21 13:41:43 -07:00
committed by GitHub
8 changed files with 3672 additions and 2732 deletions
@@ -1,7 +1,4 @@
/// <reference path="samchon-collection.d.ts" />
declare var global: any;
declare var require: (name: string) => any;
collection = require("samchon-collection");
import collection = require("samchon-collection");
console.log(collection);
+6 -16
View File
@@ -3,21 +3,11 @@
// Definitions by: Jeongho Nam <http://samchon.org>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// ------------------------------------------------------------------------------------
// In Samchon Collection, merging multiple 'ts' files to a module is not possible yet.
// Instead of using "import" instruction, use such trick:
//
// <code>
// declare var global: any;
// declare var require: Function;
//
// collection = require("samchon-collection");
// let cont: collection.ArrayCollection<string> = new collection.ArrayCollection<string>();
// </code>
//
// Those declaration of global and require can be substituted by using "node.d.ts"
// ------------------------------------------------------------------------------------
/// <reference path="../samchon-framework/samchon-framework.d.ts" />
declare var collection: typeof samchon.collection;
declare module "samchon-collection"
{
import collection = samchon.collection;
export = collection;
}
+1 -4
View File
@@ -1,7 +1,4 @@
/// <reference path="samchon-framework.d.ts" />
declare var global: any;
declare var require: any;
global["samchon"] = require("samchon-framework");
import samchon = require("samchon-framework");
console.log(samchon);
+1799 -1172
View File
File diff suppressed because it is too large Load Diff
+1 -4
View File
@@ -1,7 +1,4 @@
/// <reference path="samchon-library.d.ts" />
declare var global: any;
declare var require: (name: string) => any;
library = require("samchon-library");
import library = require("samchon-library");
console.log(library);
+6 -16
View File
@@ -3,21 +3,11 @@
// Definitions by: Jeongho Nam <http://samchon.org>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// ------------------------------------------------------------------------------------
// In Samchon Collection, merging multiple 'ts' files to a module is not possible yet.
// Instead of using "import" instruction, use such trick:
//
// <code>
// declare var global: any;
// declare var require: Function;
//
// library = require("samchon-library");
// let xml: library.XML = new library.XML();
// </code>
//
// Those declaration of global and require can be substituted by using "node.d.ts"
// ------------------------------------------------------------------------------------
/// <reference path="../samchon-framework/samchon-framework.d.ts" />
declare var library: typeof samchon.library;
declare module "samchon-library"
{
import library = samchon.library;
export = library;
}
+1 -4
View File
@@ -1,7 +1,4 @@
/// <reference path="typescript-stl.d.ts" />
declare var global: any;
declare var require: any;
global["std"] = require("typescript-stl");
import std = require("typescript-stl");
std.example.test_all();
+1857 -1512
View File
File diff suppressed because it is too large Load Diff