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({});