mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-20 16:14:57 +08:00
Add Link type to prismic-dom (#27169)
* Add Link type to prismic-dom * Add link type to default export for prismic-dom
This commit is contained in:
committed by
Ryan Cavanaugh
parent
2b130f9106
commit
b8c4d1deb5
9
types/prismic-dom/index.d.ts
vendored
9
types/prismic-dom/index.d.ts
vendored
@@ -9,7 +9,12 @@ interface RichText {
|
||||
asText(richText: any, joinString?: string): string;
|
||||
}
|
||||
|
||||
export const RichText: RichText;
|
||||
interface Link {
|
||||
url(link: any, linkResolver?: (doc: any) => string): string;
|
||||
}
|
||||
|
||||
declare const _default: { RichText: RichText };
|
||||
export const RichText: RichText;
|
||||
export const Link: Link;
|
||||
|
||||
declare const _default: { RichText: RichText, Link: Link };
|
||||
export default _default;
|
||||
|
||||
Reference in New Issue
Block a user