Update toolkit.code-snippets

This commit is contained in:
volatile-static 2023-01-16 07:57:15 +08:00 committed by GitHub
parent a0b33a2211
commit 18e77880da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,5 +25,21 @@
"scope": "javascript,typescript",
"prefix": "appendElement",
"body": "appendElement({ tag: '$1' }, $2);"
},
"register Notifier": {
"scope": "javascript,typescript",
"prefix": "registerObserver",
"body": [
"registerObserver({",
"\t notify: (",
"\t\tevent: _ZoteroTypes.Notifier.Event,",
"\t\ttype: _ZoteroTypes.Notifier.Type,",
"\t\tids: string[],",
"\t\textraData: _ZoteroTypes.anyObj",
"\t) => {",
"\t\t$0",
"\t}",
"});"
]
}
}