|
8 | 8 | // You should NOT make any changes in this file as it will be overwritten. |
9 | 9 | // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. |
10 | 10 |
|
| 11 | +import type { CreateFileRoute, FileRoutesByPath } from '@tanstack/react-router' |
| 12 | + |
11 | 13 | // Import Routes |
12 | 14 |
|
13 | 15 | import { Route as rootRoute } from './routes/__root' |
@@ -555,6 +557,342 @@ declare module '@tanstack/react-router' { |
555 | 557 | } |
556 | 558 | } |
557 | 559 |
|
| 560 | +// Add type-safety to the createFileRoute function across the route tree |
| 561 | + |
| 562 | +declare module './routes/$libraryId/route' { |
| 563 | + const createFileRoute: CreateFileRoute< |
| 564 | + '/$libraryId', |
| 565 | + FileRoutesByPath['/$libraryId']['parentRoute'], |
| 566 | + FileRoutesByPath['/$libraryId']['id'], |
| 567 | + FileRoutesByPath['/$libraryId']['path'], |
| 568 | + FileRoutesByPath['/$libraryId']['fullPath'] |
| 569 | + > |
| 570 | +} |
| 571 | +declare module './routes/_libraries/route' { |
| 572 | + const createFileRoute: CreateFileRoute< |
| 573 | + '/_libraries', |
| 574 | + FileRoutesByPath['/_libraries']['parentRoute'], |
| 575 | + FileRoutesByPath['/_libraries']['id'], |
| 576 | + FileRoutesByPath['/_libraries']['path'], |
| 577 | + FileRoutesByPath['/_libraries']['fullPath'] |
| 578 | + > |
| 579 | +} |
| 580 | +declare module './routes/dashboard' { |
| 581 | + const createFileRoute: CreateFileRoute< |
| 582 | + '/dashboard', |
| 583 | + FileRoutesByPath['/dashboard']['parentRoute'], |
| 584 | + FileRoutesByPath['/dashboard']['id'], |
| 585 | + FileRoutesByPath['/dashboard']['path'], |
| 586 | + FileRoutesByPath['/dashboard']['fullPath'] |
| 587 | + > |
| 588 | +} |
| 589 | +declare module './routes/login' { |
| 590 | + const createFileRoute: CreateFileRoute< |
| 591 | + '/login', |
| 592 | + FileRoutesByPath['/login']['parentRoute'], |
| 593 | + FileRoutesByPath['/login']['id'], |
| 594 | + FileRoutesByPath['/login']['path'], |
| 595 | + FileRoutesByPath['/login']['fullPath'] |
| 596 | + > |
| 597 | +} |
| 598 | +declare module './routes/merch' { |
| 599 | + const createFileRoute: CreateFileRoute< |
| 600 | + '/merch', |
| 601 | + FileRoutesByPath['/merch']['parentRoute'], |
| 602 | + FileRoutesByPath['/merch']['id'], |
| 603 | + FileRoutesByPath['/merch']['path'], |
| 604 | + FileRoutesByPath['/merch']['fullPath'] |
| 605 | + > |
| 606 | +} |
| 607 | +declare module './routes/sponsors-embed' { |
| 608 | + const createFileRoute: CreateFileRoute< |
| 609 | + '/sponsors-embed', |
| 610 | + FileRoutesByPath['/sponsors-embed']['parentRoute'], |
| 611 | + FileRoutesByPath['/sponsors-embed']['id'], |
| 612 | + FileRoutesByPath['/sponsors-embed']['path'], |
| 613 | + FileRoutesByPath['/sponsors-embed']['fullPath'] |
| 614 | + > |
| 615 | +} |
| 616 | +declare module './routes/$libraryId/$version' { |
| 617 | + const createFileRoute: CreateFileRoute< |
| 618 | + '/$libraryId/$version', |
| 619 | + FileRoutesByPath['/$libraryId/$version']['parentRoute'], |
| 620 | + FileRoutesByPath['/$libraryId/$version']['id'], |
| 621 | + FileRoutesByPath['/$libraryId/$version']['path'], |
| 622 | + FileRoutesByPath['/$libraryId/$version']['fullPath'] |
| 623 | + > |
| 624 | +} |
| 625 | +declare module './routes/_libraries/blog' { |
| 626 | + const createFileRoute: CreateFileRoute< |
| 627 | + '/_libraries/blog', |
| 628 | + FileRoutesByPath['/_libraries/blog']['parentRoute'], |
| 629 | + FileRoutesByPath['/_libraries/blog']['id'], |
| 630 | + FileRoutesByPath['/_libraries/blog']['path'], |
| 631 | + FileRoutesByPath['/_libraries/blog']['fullPath'] |
| 632 | + > |
| 633 | +} |
| 634 | +declare module './routes/_libraries/dedicated-support' { |
| 635 | + const createFileRoute: CreateFileRoute< |
| 636 | + '/_libraries/dedicated-support', |
| 637 | + FileRoutesByPath['/_libraries/dedicated-support']['parentRoute'], |
| 638 | + FileRoutesByPath['/_libraries/dedicated-support']['id'], |
| 639 | + FileRoutesByPath['/_libraries/dedicated-support']['path'], |
| 640 | + FileRoutesByPath['/_libraries/dedicated-support']['fullPath'] |
| 641 | + > |
| 642 | +} |
| 643 | +declare module './routes/_libraries/ethos' { |
| 644 | + const createFileRoute: CreateFileRoute< |
| 645 | + '/_libraries/ethos', |
| 646 | + FileRoutesByPath['/_libraries/ethos']['parentRoute'], |
| 647 | + FileRoutesByPath['/_libraries/ethos']['id'], |
| 648 | + FileRoutesByPath['/_libraries/ethos']['path'], |
| 649 | + FileRoutesByPath['/_libraries/ethos']['fullPath'] |
| 650 | + > |
| 651 | +} |
| 652 | +declare module './routes/_libraries/learn' { |
| 653 | + const createFileRoute: CreateFileRoute< |
| 654 | + '/_libraries/learn', |
| 655 | + FileRoutesByPath['/_libraries/learn']['parentRoute'], |
| 656 | + FileRoutesByPath['/_libraries/learn']['id'], |
| 657 | + FileRoutesByPath['/_libraries/learn']['path'], |
| 658 | + FileRoutesByPath['/_libraries/learn']['fullPath'] |
| 659 | + > |
| 660 | +} |
| 661 | +declare module './routes/_libraries/privacy' { |
| 662 | + const createFileRoute: CreateFileRoute< |
| 663 | + '/_libraries/privacy', |
| 664 | + FileRoutesByPath['/_libraries/privacy']['parentRoute'], |
| 665 | + FileRoutesByPath['/_libraries/privacy']['id'], |
| 666 | + FileRoutesByPath['/_libraries/privacy']['path'], |
| 667 | + FileRoutesByPath['/_libraries/privacy']['fullPath'] |
| 668 | + > |
| 669 | +} |
| 670 | +declare module './routes/_libraries/support' { |
| 671 | + const createFileRoute: CreateFileRoute< |
| 672 | + '/_libraries/support', |
| 673 | + FileRoutesByPath['/_libraries/support']['parentRoute'], |
| 674 | + FileRoutesByPath['/_libraries/support']['id'], |
| 675 | + FileRoutesByPath['/_libraries/support']['path'], |
| 676 | + FileRoutesByPath['/_libraries/support']['fullPath'] |
| 677 | + > |
| 678 | +} |
| 679 | +declare module './routes/_libraries/terms' { |
| 680 | + const createFileRoute: CreateFileRoute< |
| 681 | + '/_libraries/terms', |
| 682 | + FileRoutesByPath['/_libraries/terms']['parentRoute'], |
| 683 | + FileRoutesByPath['/_libraries/terms']['id'], |
| 684 | + FileRoutesByPath['/_libraries/terms']['path'], |
| 685 | + FileRoutesByPath['/_libraries/terms']['fullPath'] |
| 686 | + > |
| 687 | +} |
| 688 | +declare module './routes/$libraryId/index' { |
| 689 | + const createFileRoute: CreateFileRoute< |
| 690 | + '/$libraryId/', |
| 691 | + FileRoutesByPath['/$libraryId/']['parentRoute'], |
| 692 | + FileRoutesByPath['/$libraryId/']['id'], |
| 693 | + FileRoutesByPath['/$libraryId/']['path'], |
| 694 | + FileRoutesByPath['/$libraryId/']['fullPath'] |
| 695 | + > |
| 696 | +} |
| 697 | +declare module './routes/_libraries/index' { |
| 698 | + const createFileRoute: CreateFileRoute< |
| 699 | + '/_libraries/', |
| 700 | + FileRoutesByPath['/_libraries/']['parentRoute'], |
| 701 | + FileRoutesByPath['/_libraries/']['id'], |
| 702 | + FileRoutesByPath['/_libraries/']['path'], |
| 703 | + FileRoutesByPath['/_libraries/']['fullPath'] |
| 704 | + > |
| 705 | +} |
| 706 | +declare module './routes/stats/index' { |
| 707 | + const createFileRoute: CreateFileRoute< |
| 708 | + '/stats/', |
| 709 | + FileRoutesByPath['/stats/']['parentRoute'], |
| 710 | + FileRoutesByPath['/stats/']['id'], |
| 711 | + FileRoutesByPath['/stats/']['path'], |
| 712 | + FileRoutesByPath['/stats/']['fullPath'] |
| 713 | + > |
| 714 | +} |
| 715 | +declare module './routes/$libraryId/$version.docs' { |
| 716 | + const createFileRoute: CreateFileRoute< |
| 717 | + '/$libraryId/$version/docs', |
| 718 | + FileRoutesByPath['/$libraryId/$version/docs']['parentRoute'], |
| 719 | + FileRoutesByPath['/$libraryId/$version/docs']['id'], |
| 720 | + FileRoutesByPath['/$libraryId/$version/docs']['path'], |
| 721 | + FileRoutesByPath['/$libraryId/$version/docs']['fullPath'] |
| 722 | + > |
| 723 | +} |
| 724 | +declare module './routes/_libraries/blog.$' { |
| 725 | + const createFileRoute: CreateFileRoute< |
| 726 | + '/_libraries/blog/$', |
| 727 | + FileRoutesByPath['/_libraries/blog/$']['parentRoute'], |
| 728 | + FileRoutesByPath['/_libraries/blog/$']['id'], |
| 729 | + FileRoutesByPath['/_libraries/blog/$']['path'], |
| 730 | + FileRoutesByPath['/_libraries/blog/$']['fullPath'] |
| 731 | + > |
| 732 | +} |
| 733 | +declare module './routes/_libraries/blog.index' { |
| 734 | + const createFileRoute: CreateFileRoute< |
| 735 | + '/_libraries/blog/', |
| 736 | + FileRoutesByPath['/_libraries/blog/']['parentRoute'], |
| 737 | + FileRoutesByPath['/_libraries/blog/']['id'], |
| 738 | + FileRoutesByPath['/_libraries/blog/']['path'], |
| 739 | + FileRoutesByPath['/_libraries/blog/']['fullPath'] |
| 740 | + > |
| 741 | +} |
| 742 | +declare module './routes/stats/npm/index' { |
| 743 | + const createFileRoute: CreateFileRoute< |
| 744 | + '/stats/npm/', |
| 745 | + FileRoutesByPath['/stats/npm/']['parentRoute'], |
| 746 | + FileRoutesByPath['/stats/npm/']['id'], |
| 747 | + FileRoutesByPath['/stats/npm/']['path'], |
| 748 | + FileRoutesByPath['/stats/npm/']['fullPath'] |
| 749 | + > |
| 750 | +} |
| 751 | +declare module './routes/$libraryId/$version.docs.$' { |
| 752 | + const createFileRoute: CreateFileRoute< |
| 753 | + '/$libraryId/$version/docs/$', |
| 754 | + FileRoutesByPath['/$libraryId/$version/docs/$']['parentRoute'], |
| 755 | + FileRoutesByPath['/$libraryId/$version/docs/$']['id'], |
| 756 | + FileRoutesByPath['/$libraryId/$version/docs/$']['path'], |
| 757 | + FileRoutesByPath['/$libraryId/$version/docs/$']['fullPath'] |
| 758 | + > |
| 759 | +} |
| 760 | +declare module './routes/$libraryId/$version.docs.index' { |
| 761 | + const createFileRoute: CreateFileRoute< |
| 762 | + '/$libraryId/$version/docs/', |
| 763 | + FileRoutesByPath['/$libraryId/$version/docs/']['parentRoute'], |
| 764 | + FileRoutesByPath['/$libraryId/$version/docs/']['id'], |
| 765 | + FileRoutesByPath['/$libraryId/$version/docs/']['path'], |
| 766 | + FileRoutesByPath['/$libraryId/$version/docs/']['fullPath'] |
| 767 | + > |
| 768 | +} |
| 769 | +declare module './routes/_libraries/config.$version.index' { |
| 770 | + const createFileRoute: CreateFileRoute< |
| 771 | + '/_libraries/config/$version/', |
| 772 | + FileRoutesByPath['/_libraries/config/$version/']['parentRoute'], |
| 773 | + FileRoutesByPath['/_libraries/config/$version/']['id'], |
| 774 | + FileRoutesByPath['/_libraries/config/$version/']['path'], |
| 775 | + FileRoutesByPath['/_libraries/config/$version/']['fullPath'] |
| 776 | + > |
| 777 | +} |
| 778 | +declare module './routes/_libraries/form.$version.index' { |
| 779 | + const createFileRoute: CreateFileRoute< |
| 780 | + '/_libraries/form/$version/', |
| 781 | + FileRoutesByPath['/_libraries/form/$version/']['parentRoute'], |
| 782 | + FileRoutesByPath['/_libraries/form/$version/']['id'], |
| 783 | + FileRoutesByPath['/_libraries/form/$version/']['path'], |
| 784 | + FileRoutesByPath['/_libraries/form/$version/']['fullPath'] |
| 785 | + > |
| 786 | +} |
| 787 | +declare module './routes/_libraries/pacer.$version.index' { |
| 788 | + const createFileRoute: CreateFileRoute< |
| 789 | + '/_libraries/pacer/$version/', |
| 790 | + FileRoutesByPath['/_libraries/pacer/$version/']['parentRoute'], |
| 791 | + FileRoutesByPath['/_libraries/pacer/$version/']['id'], |
| 792 | + FileRoutesByPath['/_libraries/pacer/$version/']['path'], |
| 793 | + FileRoutesByPath['/_libraries/pacer/$version/']['fullPath'] |
| 794 | + > |
| 795 | +} |
| 796 | +declare module './routes/_libraries/query.$version.index' { |
| 797 | + const createFileRoute: CreateFileRoute< |
| 798 | + '/_libraries/query/$version/', |
| 799 | + FileRoutesByPath['/_libraries/query/$version/']['parentRoute'], |
| 800 | + FileRoutesByPath['/_libraries/query/$version/']['id'], |
| 801 | + FileRoutesByPath['/_libraries/query/$version/']['path'], |
| 802 | + FileRoutesByPath['/_libraries/query/$version/']['fullPath'] |
| 803 | + > |
| 804 | +} |
| 805 | +declare module './routes/_libraries/ranger.$version.index' { |
| 806 | + const createFileRoute: CreateFileRoute< |
| 807 | + '/_libraries/ranger/$version/', |
| 808 | + FileRoutesByPath['/_libraries/ranger/$version/']['parentRoute'], |
| 809 | + FileRoutesByPath['/_libraries/ranger/$version/']['id'], |
| 810 | + FileRoutesByPath['/_libraries/ranger/$version/']['path'], |
| 811 | + FileRoutesByPath['/_libraries/ranger/$version/']['fullPath'] |
| 812 | + > |
| 813 | +} |
| 814 | +declare module './routes/_libraries/router.$version.index' { |
| 815 | + const createFileRoute: CreateFileRoute< |
| 816 | + '/_libraries/router/$version/', |
| 817 | + FileRoutesByPath['/_libraries/router/$version/']['parentRoute'], |
| 818 | + FileRoutesByPath['/_libraries/router/$version/']['id'], |
| 819 | + FileRoutesByPath['/_libraries/router/$version/']['path'], |
| 820 | + FileRoutesByPath['/_libraries/router/$version/']['fullPath'] |
| 821 | + > |
| 822 | +} |
| 823 | +declare module './routes/_libraries/start.$version.index' { |
| 824 | + const createFileRoute: CreateFileRoute< |
| 825 | + '/_libraries/start/$version/', |
| 826 | + FileRoutesByPath['/_libraries/start/$version/']['parentRoute'], |
| 827 | + FileRoutesByPath['/_libraries/start/$version/']['id'], |
| 828 | + FileRoutesByPath['/_libraries/start/$version/']['path'], |
| 829 | + FileRoutesByPath['/_libraries/start/$version/']['fullPath'] |
| 830 | + > |
| 831 | +} |
| 832 | +declare module './routes/_libraries/store.$version.index' { |
| 833 | + const createFileRoute: CreateFileRoute< |
| 834 | + '/_libraries/store/$version/', |
| 835 | + FileRoutesByPath['/_libraries/store/$version/']['parentRoute'], |
| 836 | + FileRoutesByPath['/_libraries/store/$version/']['id'], |
| 837 | + FileRoutesByPath['/_libraries/store/$version/']['path'], |
| 838 | + FileRoutesByPath['/_libraries/store/$version/']['fullPath'] |
| 839 | + > |
| 840 | +} |
| 841 | +declare module './routes/_libraries/table.$version.index' { |
| 842 | + const createFileRoute: CreateFileRoute< |
| 843 | + '/_libraries/table/$version/', |
| 844 | + FileRoutesByPath['/_libraries/table/$version/']['parentRoute'], |
| 845 | + FileRoutesByPath['/_libraries/table/$version/']['id'], |
| 846 | + FileRoutesByPath['/_libraries/table/$version/']['path'], |
| 847 | + FileRoutesByPath['/_libraries/table/$version/']['fullPath'] |
| 848 | + > |
| 849 | +} |
| 850 | +declare module './routes/_libraries/virtual.$version.index' { |
| 851 | + const createFileRoute: CreateFileRoute< |
| 852 | + '/_libraries/virtual/$version/', |
| 853 | + FileRoutesByPath['/_libraries/virtual/$version/']['parentRoute'], |
| 854 | + FileRoutesByPath['/_libraries/virtual/$version/']['id'], |
| 855 | + FileRoutesByPath['/_libraries/virtual/$version/']['path'], |
| 856 | + FileRoutesByPath['/_libraries/virtual/$version/']['fullPath'] |
| 857 | + > |
| 858 | +} |
| 859 | +declare module './routes/$libraryId/$version.docs.framework.index' { |
| 860 | + const createFileRoute: CreateFileRoute< |
| 861 | + '/$libraryId/$version/docs/framework/', |
| 862 | + FileRoutesByPath['/$libraryId/$version/docs/framework/']['parentRoute'], |
| 863 | + FileRoutesByPath['/$libraryId/$version/docs/framework/']['id'], |
| 864 | + FileRoutesByPath['/$libraryId/$version/docs/framework/']['path'], |
| 865 | + FileRoutesByPath['/$libraryId/$version/docs/framework/']['fullPath'] |
| 866 | + > |
| 867 | +} |
| 868 | +declare module './routes/$libraryId/$version.docs.framework.$framework.$' { |
| 869 | + const createFileRoute: CreateFileRoute< |
| 870 | + '/$libraryId/$version/docs/framework/$framework/$', |
| 871 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/$']['parentRoute'], |
| 872 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/$']['id'], |
| 873 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/$']['path'], |
| 874 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/$']['fullPath'] |
| 875 | + > |
| 876 | +} |
| 877 | +declare module './routes/$libraryId/$version.docs.framework.$framework.index' { |
| 878 | + const createFileRoute: CreateFileRoute< |
| 879 | + '/$libraryId/$version/docs/framework/$framework/', |
| 880 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/']['parentRoute'], |
| 881 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/']['id'], |
| 882 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/']['path'], |
| 883 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/']['fullPath'] |
| 884 | + > |
| 885 | +} |
| 886 | +declare module './routes/$libraryId/$version.docs.framework.$framework.examples.$' { |
| 887 | + const createFileRoute: CreateFileRoute< |
| 888 | + '/$libraryId/$version/docs/framework/$framework/examples/$', |
| 889 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/examples/$']['parentRoute'], |
| 890 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/examples/$']['id'], |
| 891 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/examples/$']['path'], |
| 892 | + FileRoutesByPath['/$libraryId/$version/docs/framework/$framework/examples/$']['fullPath'] |
| 893 | + > |
| 894 | +} |
| 895 | + |
558 | 896 | // Create and export the route tree |
559 | 897 |
|
560 | 898 | interface LibraryIdVersionDocsRouteChildren { |
|
0 commit comments