summaryrefslogtreecommitdiff
path: root/src/client/scripts/hpml/lib.ts
diff options
context:
space:
mode:
authormarihachi <marihachi0620@gmail.com>2020-12-19 21:09:23 +0900
committerGitHub <noreply@github.com>2020-12-19 21:09:23 +0900
commit9f9194ab5c747ec2f51892aeefb4deb8f8d58925 (patch)
tree679e9bee6e251e6bd72f9135cf745ab72398ffda /src/client/scripts/hpml/lib.ts
parentpageの選択肢が動作していない問題を修正 (diff)
downloadsharkey-9f9194ab5c747ec2f51892aeefb4deb8f8d58925.tar.gz
sharkey-9f9194ab5c747ec2f51892aeefb4deb8f8d58925.tar.bz2
sharkey-9f9194ab5c747ec2f51892aeefb4deb8f8d58925.zip
Fix type of Hpml.pageVarUpdatedCallback (#6995)
Diffstat (limited to 'src/client/scripts/hpml/lib.ts')
-rw-r--r--src/client/scripts/hpml/lib.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/scripts/hpml/lib.ts b/src/client/scripts/hpml/lib.ts
index 9708581a11..5ec5078415 100644
--- a/src/client/scripts/hpml/lib.ts
+++ b/src/client/scripts/hpml/lib.ts
@@ -19,7 +19,7 @@ Chart.pluginService.register({
export function initLib(hpml: Hpml) {
return {
'MkPages:updated': values.FN_NATIVE(([callback]) => {
- hpml.pageVarUpdatedCallback = callback;
+ hpml.pageVarUpdatedCallback = (callback as values.VFn);
}),
'MkPages:get_canvas': values.FN_NATIVE(([id]) => {
utils.assertString(id);