Prettify existing code

This commit is contained in:
Colin Caine 2018-09-02 12:40:56 +01:00
parent 5dbeda43ad
commit 6d297ce935
2 changed files with 21 additions and 21 deletions

View file

@ -33,18 +33,21 @@ export class Foo {
function logArgs(t, n, pd) {
const orig = pd.value
pd.value = (...args) => {console.log(orig, ...args); return orig(...args)}
pd.value = (...args) => {
console.log(orig, ...args)
return orig(...args)
}
}
function printMeta(target, name, propDesc) {
["design:type", "design:paramtypes", "design:returntype"].forEach(key =>
console.log(key, Reflect.getMetadata(key, target, name)))
;["design:type", "design:paramtypes", "design:returntype"].forEach(key =>
console.log(key, Reflect.getMetadata(key, target, name)),
)
}
;(window as any).Foo = Foo
import * as csp from "csp-serdes"
;(window as any).csp = csp
// class Excmds {

View file

@ -28,8 +28,7 @@ class ExCmds {
parser(`excmd 3 ${x}`, meta)
}
scrolline({msg, flags: {up, down}}, x, y) {
}
scrolline({ msg, flags: { up, down } }, x, y) {}
@content
async open({ msg, flags }, ...urlarr: string[]) {
@ -51,11 +50,9 @@ class native {
}
@background
print([a, b], meta) {
}
print([a, b], meta) {}
path(meta, x, ...y) {
}
path(meta, x, ...y) {}
path({ msg, flags: { force } }, x, ...y) {
foo({ msg }, y[0], x)