aboutsummaryrefslogtreecommitdiff
path: root/src/fields/Doc.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-04-11 13:16:51 -0400
committerGitHub <noreply@github.com>2021-04-11 13:16:51 -0400
commit607e219255efbe2961bc23d5bd296c810e39e8d1 (patch)
tree04fec0def75bb4c1264306717de31ebd0a2a2518 /src/fields/Doc.ts
parentf87c528f95912319c4181b3955cad4f1042c021e (diff)
parentb215d4860454fca9050bb96a5f7c222c1eb9a3c7 (diff)
Merge pull request #952 from browngraphicslab/demo_changes
Demo changes
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r--src/fields/Doc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts
index 300dae0aa..9faba9486 100644
--- a/src/fields/Doc.ts
+++ b/src/fields/Doc.ts
@@ -1324,7 +1324,7 @@ export namespace Doc {
}
-Scripting.addGlobal(function idToDoc(id: string) { return DocServer.GetCachedRefField(id); });
+Scripting.addGlobal(function idToDoc(id: string): any { return DocServer.GetCachedRefField(id); });
Scripting.addGlobal(function renameAlias(doc: any, n: any) { return StrCast(Doc.GetProto(doc).title).replace(/\([0-9]*\)/, "") + `(${n})`; });
Scripting.addGlobal(function getProto(doc: any) { return Doc.GetProto(doc); });
Scripting.addGlobal(function getDocTemplate(doc?: any) { return Doc.getDocTemplate(doc); });