Skip to content

Instantly share code, notes, and snippets.

// For bootstrap 4 and I18N
import { inject } from 'aurelia-framework'
import { RenderInstruction, ValidateResult } from 'aurelia-validation';
import {I18N} from "aurelia-i18n";
@inject(I18N)
export class BootstrapFormRenderer {
@xperiments
xperiments / Dictionary.ts
Created June 25, 2013 18:48
Typescript Dictionary
//http://stackoverflow.com/questions/15877362/declare-and-initialize-a-dictionary-in-typescript
interface IDictionary {
add(key: string, value: any): void;
remove(key: string): void;
containsKey(key: string): bool;
keys(): string[];
values(): any[];
}