mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
TypeScript-STL and Samchon-Framework, right sentence
This commit is contained in:
@@ -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);
|
||||
22
samchon-collection/samchon-collection.d.ts
vendored
22
samchon-collection/samchon-collection.d.ts
vendored
@@ -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,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);
|
||||
2978
samchon-framework/samchon-framework.d.ts
vendored
2978
samchon-framework/samchon-framework.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@@ -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);
|
||||
22
samchon-library/samchon-library.d.ts
vendored
22
samchon-library/samchon-library.d.ts
vendored
@@ -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,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();
|
||||
3369
typescript-stl/typescript-stl.d.ts
vendored
3369
typescript-stl/typescript-stl.d.ts
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user