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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user