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:
47
node_modules/vfile-location/index.d.ts
generated
vendored
Normal file
47
node_modules/vfile-location/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
import type {Point as UnistPoint} from 'unist'
|
||||
|
||||
export {location} from './lib/index.js'
|
||||
|
||||
/**
|
||||
* Accessors for index.
|
||||
*/
|
||||
export interface Location {
|
||||
/**
|
||||
* Get the `offset` from a line/column based `Point` in the bound indices;
|
||||
* returns `undefined` when given out of bounds input.
|
||||
*
|
||||
* @param point
|
||||
* Line/column based `Point`.
|
||||
* @returns
|
||||
* Offset.
|
||||
*/
|
||||
toOffset(point?: PointLike | null | undefined): number | undefined
|
||||
/**
|
||||
* Get the line/column based `Point` for `offset` in the bound indices;
|
||||
* returns `undefined` when given out of bounds input.
|
||||
*
|
||||
* @param offset
|
||||
* Offset.
|
||||
* @returns
|
||||
* `Point`.
|
||||
*/
|
||||
toPoint(offset?: number | null | undefined): UnistPoint | undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Point from `unist`, allowed as input.
|
||||
*/
|
||||
interface PointLike {
|
||||
/**
|
||||
* Column.
|
||||
*/
|
||||
column?: number | null | undefined
|
||||
/**
|
||||
* Line.
|
||||
*/
|
||||
line?: number | null | undefined
|
||||
/**
|
||||
* Offset.
|
||||
*/
|
||||
offset?: number | null | undefined
|
||||
}
|
Reference in New Issue
Block a user