This commit is contained in:
Nick Whyte
2018-03-09 12:32:31 +11:00
parent 4377692a9b
commit 2f3607131c
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
// Type definitions for prismic-dom 2.0
// Project: https://github.com/prismicio/prismic-dom#readme
// Definitions by: Nick Whyte <https://github.com/nickw444/>
// Definitions by: Nick Whyte <https://github.com/nickw444>
// 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;
}
+1 -1
View File
@@ -1,3 +1,3 @@
import prismicDom = require("prismic-dom");
let rendered: string = prismicDom.RichText.asHtml({});
const rendered: string = prismicDom.RichText.asHtml({});