prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

revert key ordering changes

authored by

JP Hastings-Spital and committed by
Tyler Lawson
e6580ac4 af651daa

+9 -9
+5 -5
packages/prototypey/core/tests/from-json-infer.test.ts
··· 350 350 351 351 attest(lexicon["~infer"]).type.toString.snap(`{ 352 352 $type: "test.mixed" 353 - email?: string | undefined 354 353 age?: number | undefined 354 + email?: string | undefined 355 355 id: string 356 356 name: string 357 357 }`); ··· 628 628 attest(lexicon["~infer"]).type.toString.snap(`{ 629 629 $type: "test.record" 630 630 published?: boolean | undefined 631 - content: string 632 631 title: string 632 + content: string 633 633 }`); 634 634 }); 635 635 ··· 659 659 660 660 attest(lexicon["~infer"]).type.toString.snap(`{ 661 661 $type: "test.nested" 662 - user?: { email: string; name: string } | undefined 662 + user?: { name: string; email: string } | undefined 663 663 }`); 664 664 }); 665 665 ··· 976 976 attest(ns["~infer"]).type.toString.snap(`{ 977 977 $type: "test" 978 978 content: string 979 - author: { email: string; name: string; $type: "#user" } 979 + author: { name: string; email: string; $type: "#user" } 980 980 }`); 981 981 }); 982 982 ··· 1146 1146 | { 1147 1147 posts?: 1148 1148 | { 1149 - author: "[Circular reference detected: #user]" 1150 1149 title: string 1150 + author: "[Circular reference detected: #user]" 1151 1151 $type: "#post" 1152 1152 }[] 1153 1153 | undefined
+4 -4
packages/prototypey/core/tests/infer.test.ts
··· 238 238 239 239 attest(lexicon["~infer"]).type.toString.snap(`{ 240 240 $type: "test.mixed" 241 - email?: string | undefined 242 241 age?: number | undefined 242 + email?: string | undefined 243 243 id: string 244 244 name: string 245 245 }`); ··· 510 510 attest(lexicon["~infer"]).type.toString.snap(`{ 511 511 $type: "test.record" 512 512 published?: boolean | undefined 513 - content: string 514 513 title: string 514 + content: string 515 515 }`); 516 516 }); 517 517 ··· 531 531 532 532 attest(lexicon["~infer"]).type.toString.snap(`{ 533 533 $type: "test.nested" 534 - user?: { email: string; name: string } | undefined 534 + user?: { name: string; email: string } | undefined 535 535 }`); 536 536 }); 537 537 ··· 724 724 attest(ns["~infer"]).type.toString.snap(`{ 725 725 $type: "test" 726 726 author?: 727 - | { email: string; name: string; $type: "#user" } 727 + | { name: string; email: string; $type: "#user" } 728 728 | undefined 729 729 content: string 730 730 }`);