TypeScript-STL and Samchon-Framework, right sentence

This commit is contained in:
Jeongho Nam
2016-06-21 15:29:04 +09:00
parent c10a349ed5
commit a969442874
8 changed files with 3679 additions and 2732 deletions

View File

@@ -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);

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;
}

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);

File diff suppressed because it is too large Load Diff

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);

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;
}

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();

File diff suppressed because it is too large Load Diff