-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(v2): Expose docusaurus module type aliases to end-users (#2608)
- Loading branch information
1 parent
bfeb104
commit 61c917f
Showing
4 changed files
with
55 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "@docusaurus/module-type-aliases", | ||
"version": "2.0.0-alpha.50", | ||
"description": "Docusaurus module type aliases", | ||
"types": "./src/index.d.ts", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* 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. | ||
*/ | ||
|
||
declare module '@generated/client-modules' { | ||
const clientModules: readonly any[]; | ||
export default clientModules; | ||
} | ||
|
||
declare module '@generated/docusaurus.config' { | ||
const config: any; | ||
export default config; | ||
} | ||
|
||
declare module '@generated/registry' { | ||
const registry: { | ||
readonly [key: string]: [() => Promise<any>, string, string]; | ||
}; | ||
export default registry; | ||
} | ||
|
||
declare module '@generated/routes' { | ||
type Route = { | ||
readonly path: string; | ||
readonly component: any; | ||
readonly exact?: boolean; | ||
}; | ||
const routes: Route[]; | ||
export default routes; | ||
} | ||
|
||
declare module '@generated/routesChunkNames' { | ||
const routesChunkNames: any; | ||
export default routesChunkNames; | ||
} | ||
|
||
declare module '@theme/*' { | ||
const component: any; | ||
export default component; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters