Skip to content

Commit 949cc6f

Browse files
committed
Reorder URL properties
1 parent 495bd5f commit 949cc6f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -649,8 +649,8 @@ Yields:
649649
```idl
650650
interface Link <: Parent {
651651
type: "link";
652-
title: string | null;
653652
url: string;
653+
title: string | null;
654654
}
655655
```
656656

@@ -665,8 +665,8 @@ Yields:
665665
```json
666666
{
667667
"type": "link",
668-
"title": "bravo",
669668
"url": "http://example.com",
669+
"title": "bravo",
670670
"children": [{
671671
"type": "text",
672672
"value": "alpha"
@@ -681,9 +681,9 @@ Yields:
681681
```idl
682682
interface Image <: Node {
683683
type: "image";
684+
url: string;
684685
title: string | null;
685686
alt: string | null;
686-
url: string;
687687
}
688688
```
689689

@@ -698,8 +698,8 @@ Yields:
698698
```json
699699
{
700700
"type": "image",
701-
"title": "bravo",
702701
"url": "http://example.com",
702+
"title": "bravo",
703703
"alt": "alpha"
704704
}
705705
```
@@ -850,8 +850,8 @@ and title) of a [`LinkReference`][linkreference] or an
850850
interface Definition <: Node {
851851
type: "definition";
852852
identifier: string;
853-
title: string | null;
854853
url: string;
854+
title: string | null;
855855
}
856856
```
857857

@@ -867,8 +867,8 @@ Yields:
867867
{
868868
"type": "definition",
869869
"identifier": "alpha",
870-
"title": null,
871-
"url": "http://example.com"
870+
"url": "http://example.com",
871+
"title": null
872872
}
873873
```
874874

0 commit comments

Comments
 (0)