ipynb2html/patches/@types+marked+0.7.2.patch

38 lines
1.5 KiB
Diff

Remove after https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43732
is merged and released.
diff --git a/node_modules/@types/marked/index.d.ts b/node_modules/@types/marked/index.d.ts
index e89b2cf..2dc01dc 100644
--- a/node_modules/@types/marked/index.d.ts
+++ b/node_modules/@types/marked/index.d.ts
@@ -129,8 +129,8 @@ declare namespace marked {
codespan(code: string): string;
br(): string;
del(text: string): string;
- link(href: string, title: string, text: string): string;
- image(href: string, title: string, text: string): string;
+ link(href: string | null, title: string | null, text: string): string;
+ image(href: string | null, title: string | null, text: string): string;
text(text: string): string;
}
@@ -140,8 +140,8 @@ declare namespace marked {
codespan(text: string): string;
del(text: string): string;
text(text: string): string;
- link(href: string, title: string, text: string): string;
- image(href: string, title: string, text: string): string;
+ link(href: string | null, title: string | null, text: string): string;
+ image(href: string | null, title: string | null, text: string): string;
br(): string;
}
@@ -182,7 +182,7 @@ declare namespace marked {
type TokensList = Token[] & {
links: {
- [key: string]: { href: string; title: string; }
+ [key: string]: { href: string | null; title: string | null; }
}
};