Files
makemd/dashboard/.umi/core/route.tsx

30 lines
746 B
TypeScript
Raw Normal View History

// @ts-nocheck
// This file is generated by Umi automatically
// DO NOT CHANGE IT MANUALLY!
import routeProps from './routeProps';
if (process.env.NODE_ENV === 'development') {
Object.entries(routeProps).forEach(([key, value]) => {
const internalProps = ['path', 'id', 'parentId', 'isLayout', 'isWrapper', 'layout', 'clientLoader'];
Object.keys(value).forEach((prop) => {
if (internalProps.includes(prop)) {
throw new Error(
`[UmiJS] route '${key}' should not have '${prop}' prop, please remove this property in 'routeProps'.`
)
}
})
})
}
import React from 'react';
export async function getRoutes() {
const routes = {} as const;
return {
routes,
routeComponents: {
},
};
}