diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-22 10:07:40 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-22 10:07:40 -0400 |
commit | f7b85fbc695f326fe4f8238254eef8b94dd5b9bb (patch) | |
tree | 3496157962b7b6adaa4dd304f1abf948e6b76db8 /src | |
parent | b9a8ff80b504d02dbecd007d56379a44b0d4e721 (diff) |
added overload for JSON parser
Diffstat (limited to 'src')
-rw-r--r-- | src/client/documents/Documents.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 5a6eff04c..ca5cd8523 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -450,6 +450,7 @@ export namespace Docs { * @param title an optional title to give to the highest parent document in the hierarchy */ export function DocumentHierarchyFromJson(input: any, title?: string): Opt<Doc>; + export function DocumentHierarchyFromJson(input: string, title?: string): Opt<Doc>; export function DocumentHierarchyFromJson(input: string, title?: string): Opt<Doc> { // preliminary check - making a document out of null or undefined is meaningless if (input === null || input === undefined) { |