mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Prettify existing code
This commit is contained in:
parent
5dbeda43ad
commit
6d297ce935
2 changed files with 21 additions and 21 deletions
11
index.ts
11
index.ts
|
@ -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 {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue