Classical 0.1.11
See the version list below for details.
dotnet add package Classical --version 0.1.11
NuGet\Install-Package Classical -Version 0.1.11
<PackageReference Include="Classical" Version="0.1.11" />
paket add Classical --version 0.1.11
#r "nuget: Classical, 0.1.11"
// Install Classical as a Cake Addin
#addin nuget:?package=Classical&version=0.1.11
// Install Classical as a Cake Tool
#tool nuget:?package=Classical&version=0.1.11
A TypeScript Base Class Library.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.2.19 | 169 | 2/19/2015 |
0.2.18 | 59 | 2/18/2015 |
0.2.17 | 51 | 2/18/2015 |
0.2.16 | 54 | 2/18/2015 |
0.2.15 | 48 | 2/18/2015 |
0.2.14 | 71 | 1/28/2015 |
0.2.13 | 51 | 1/28/2015 |
0.2.12 | 55 | 1/28/2015 |
0.2.11 | 49 | 1/28/2015 |
0.2.10 | 56 | 1/28/2015 |
0.2.9 | 72 | 1/12/2015 |
0.2.8 | 54 | 1/12/2015 |
0.2.7 | 57 | 1/12/2015 |
0.2.6 | 55 | 1/12/2015 |
0.2.5 | 60 | 1/12/2015 |
0.2.4 | 55 | 1/12/2015 |
0.2.3 | 54 | 1/12/2015 |
0.2.2 | 51 | 1/12/2015 |
0.2.1 | 63 | 1/11/2015 |
0.2.0 | 54 | 1/11/2015 |
0.1.14 | 61 | 1/8/2015 |
0.1.13 | 68 | 12/24/2014 |
0.1.12 | 63 | 12/22/2014 |
0.1.11 | 65 | 12/21/2014 |
0.1.10 | 64 | 12/21/2014 |
0.1.9 | 62 | 12/20/2014 |
0.1.8 | 60 | 12/20/2014 |
0.1.7 | 58 | 12/20/2014 |
0.1.6 | 56 | 12/20/2014 |
0.1.5 | 80 | 12/19/2014 |
0.1.4 | 63 | 12/19/2014 |
0.1.3 | 60 | 12/19/2014 |
0.1.2 | 63 | 12/16/2014 |
0.1.1 | 59 | 12/16/2014 |
0.1.0 | 63 | 12/16/2014 |
- The Watch.js polyfill was added to classical.js.
- The MutationObserver.js polyfill was added to classical.js
- JsMin was used to minify classical.js
- Added Intro.ts for getting started
- Added a minified version of classical.js: classical.min.js
- Added two methods to the Type class in Reflection
- getFieldsOf
- getFieldOf
- All tests continue to pass
//Write your first few lines of Classical.js
module Classical.Introduction {
import Assert = Classical.Assert;
import Expression = Classical.Expression;
import u = Utilities;
import r = Classical.Reflection;
import e = Classical.Events;
import b = Classical.Binding;
import cc = Classical.Collections;
import bc = Classical.Binding.Collections;
//1. Read through the Classical.js code below
//2. Inspect the results in the browser console
//3. Explore each of the modules above using intellisense
//4. Have fun!
//Array extensions
export var array = []
.add(0).add(0.5).add(1)
.addRange([1.5, 2, 2.5])
.set(6, 3)
.query()
.concat(
cc.Enumerable
.range(3.5, .5, 10))
.where(x => x < 5)
.select(x => Math.round(x * 2))
.array();
//Query Comprehension
export var aggregation =
array.query()
.sum(x =>
Math.pow(Math.sin(x), 2) +
Math.pow(Math.cos(x), 2)) /
array.length;
//Query Information
export var queryType = typeOf(cc.Queryable);
export var queryMethods = queryType
.getMethods(r.Modifier.Public, r.Modifier.Instance)
.dictionary(
m => m.name,
m => u.format('{0}({1})',
m.name,
m.getParameters()
.select(p => p.name)
.array()));
//Reflection Classes
export var reflectionModule = moduleOf(r.Type);
export var reflectionClasses = reflectionModule
.getTypes().select(t => t.name)
.array();
//Type Members
export var typeType = queryType.getType();
export var typeMembers = typeType
.getProperties(r.Modifier.Public, r.Modifier.Instance, r.Modifier.Static)
.select(m => m.name)
.array();
}