Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Windows.Forms;
namespace ConsoleApplication
{
class Program
{
[STAThread]
static void Main(string[] args)
{
<html>
<head>
<title>Test</title>
<script type="text/javascript">
"use strict"
function BigObject(x) {
this.x = new Array(x);
}
var callbacks;
var hex = 1234;
`Invalid unicode escape [\\u${hex}]`
/*
Output in Playground
var hex = 1234;
"Invalid unicode escape [\u" + hex + "]";
*/
/*
@Component({
selector: 'todo-app',
injectables: [
AngularFire,
bind(Firebase).toValue(new Firebase('https://webapi.firebaseio-demo.com/test'))
]})
@View({
templateUrl: 'todo.html',
directives: [For]
})
// compile as: fsc -r:Mirror.dll client.fs
module Client
type T = Top.Repro.C
T.Run()
module M {
interface MyArray<T> {
push(value: T): void
}
let x = [1];
x.push(2);
let y: MyArray<string>;
y.push("123")
<html>
<head>
<title>Text</title>
<script src="system.src.js"></script>
</head>
<body>
<script>
System.paths = {
'*': '*.js',
'lodash':'node_modules/lodash/index.js'
// babel file1.ts -m system
System.register(['angular2/src/facade/lang', 'angular2/src/facade/collection', './reflection_capabilities', './reflector'], function (_export) {
'use strict';
var Type, isPresent, List, ListWrapper, ReflectionCapabilities, Reflector, reflector;
return {
setters: [function (_angular2SrcFacadeLang) {
Type = _angular2SrcFacadeLang.Type;
isPresent = _angular2SrcFacadeLang.isPresent;
}, function (_angular2SrcFacadeCollection) {
<html>
<head>
<title>Test</title>
<script language="javascript" src="system.js"></script>
<script>
System.config({
paths: {
'*': '*.js'
}
});
declare namespace q.SomeEnum {
export type SomeEnum = number ;
export var SomeEnum : {
A : SomeEnum ,
B : SomeEnum ,
};
}
declare module 'goog:SomeEnum' {
import alias = q.SomeEnum