Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.
This commit is contained in:
34
node_modules/retext-latin/index.d.ts
generated
vendored
Normal file
34
node_modules/retext-latin/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import type {Nodes, Paragraph, Root, Sentence} from 'nlcst'
|
||||
import type {Plugin} from 'unified'
|
||||
|
||||
// See `parse-latin`.
|
||||
type Extension<Node extends Nodes> = (node: Node) => undefined | void
|
||||
|
||||
/**
|
||||
* Add support for parsing Latin-script natural language.
|
||||
*
|
||||
* @this
|
||||
* Unified processor.
|
||||
* @returns
|
||||
* Nothing.
|
||||
*/
|
||||
declare const retextLatin: Plugin<[], string, Root>
|
||||
export default retextLatin
|
||||
|
||||
// Add custom data supported when `retext-latin` is added.
|
||||
declare module 'unified' {
|
||||
interface Data {
|
||||
/**
|
||||
* List of extensions to transform paragraph nodes.
|
||||
*/
|
||||
nlcstParagraphExtensions?: Array<Extension<Paragraph>>
|
||||
/**
|
||||
* List of extensions to transform root nodes.
|
||||
*/
|
||||
nlcstRootExtensions?: Array<Extension<Root>>
|
||||
/**
|
||||
* List of extensions to transform sentence nodes.
|
||||
*/
|
||||
nlcstSentenceExtensions?: Array<Extension<Sentence>>
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user