From 2f3607131c9716b01fcd7e7f76cb82764fb9b4ac Mon Sep 17 00:00:00 2001 From: Nick Whyte Date: Fri, 9 Mar 2018 12:32:31 +1100 Subject: [PATCH] . --- types/prismic-dom/index.d.ts | 6 +++--- types/prismic-dom/prismic-dom-tests.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/prismic-dom/index.d.ts b/types/prismic-dom/index.d.ts index 9588f1e25c..82c766fda6 100644 --- a/types/prismic-dom/index.d.ts +++ b/types/prismic-dom/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for prismic-dom 2.0 // Project: https://github.com/prismicio/prismic-dom#readme -// Definitions by: Nick Whyte +// Definitions by: Nick Whyte // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export class RichText { - static asHtml(richText: any, linkResolver?: (doc: any) => string): string; +export namespace RichText { + function asHtml(richText: any, linkResolver?: (doc: any) => string): string; } diff --git a/types/prismic-dom/prismic-dom-tests.ts b/types/prismic-dom/prismic-dom-tests.ts index 9e123002f1..598573cced 100644 --- a/types/prismic-dom/prismic-dom-tests.ts +++ b/types/prismic-dom/prismic-dom-tests.ts @@ -1,3 +1,3 @@ import prismicDom = require("prismic-dom"); -let rendered: string = prismicDom.RichText.asHtml({}); +const rendered: string = prismicDom.RichText.asHtml({});