1
0
mirror of synced 2025-11-09 05:17:24 +00:00

docs(examples): refactor examples to be more familiar to most users

use npm to install the library and run each example, remove yarn.lock files
This commit is contained in:
Jason Dreyzehner
2017-02-17 02:30:16 -05:00
parent 56a848f981
commit 45d7dfad62
10 changed files with 73 additions and 654 deletions

View File

@@ -1,14 +1,14 @@
// Note: we're not using the double method, so it should be excluded from the bundle
import { power, asyncABC } from '../../../'
import { power, asyncABC } from 'typescript-starter'
let output = ''
function log(str: string) {
function log (str: string) {
console.log(str)
output += str + '\n'
}
function logAndAlert(data: string[]) {
function logAndAlert (data: string[]) {
log('✔ asyncABC returned: ' + data)
window.alert(output)
}