From f7b85fbc695f326fe4f8238254eef8b94dd5b9bb Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Mon, 22 Jul 2019 10:07:40 -0400 Subject: added overload for JSON parser --- src/client/documents/Documents.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; + export function DocumentHierarchyFromJson(input: string, title?: string): Opt; export function DocumentHierarchyFromJson(input: string, title?: string): Opt { // preliminary check - making a document out of null or undefined is meaningless if (input === null || input === undefined) { -- cgit v1.2.3-70-g09d2