UNPKG

@docusaurus/utils

Version:

Node utility functions for Docusaurus packages.

13 lines 471 B
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type { RouteConfig } from '@docusaurus/types'; /** * Recursively flatten routes and only return the "leaf routes" * Parent routes are filtered out */ export declare function flattenRoutes(routeConfig: RouteConfig[]): RouteConfig[]; //# sourceMappingURL=routeUtils.d.ts.map