mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #26463 from sbilstein/add-as-text-to-prismic-dom
Add a type for PrismicDOM.RichText text function
This commit is contained in:
Vendored
+2
@@ -1,10 +1,12 @@
|
||||
// Type definitions for prismic-dom 2.0
|
||||
// Project: https://github.com/prismicio/prismic-dom#readme
|
||||
// Definitions by: Nick Whyte <https://github.com/nickw444>
|
||||
// Siggy Bilstein <https://github.com/sbilstein>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface RichText {
|
||||
asHtml(richText: any, linkResolver?: (doc: any) => string): string;
|
||||
asText(richText: any, joinString?: string): string;
|
||||
}
|
||||
|
||||
export const RichText: RichText;
|
||||
|
||||
Reference in New Issue
Block a user