🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
77
node_modules/mdast-util-mdxjs-esm/index.d.ts
generated
vendored
Normal file
77
node_modules/mdast-util-mdxjs-esm/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
import type {Program} from 'estree-jsx'
|
||||
import type {Literal as HastLiteral} from 'hast'
|
||||
import type {Literal as MdastLiteral} from 'mdast'
|
||||
|
||||
export {mdxjsEsmFromMarkdown, mdxjsEsmToMarkdown} from './lib/index.js'
|
||||
|
||||
/**
|
||||
* MDX ESM (import/export) node.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||
export interface MdxjsEsm extends MdastLiteral {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxjsEsm'
|
||||
|
||||
/**
|
||||
* Data.
|
||||
*/
|
||||
data?: {
|
||||
/**
|
||||
* Program node from estree.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
estree?: Program | null | undefined
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Deprecated: use the `MdxjsEsm` type instead.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
export type MDXJSEsm = MdxjsEsm
|
||||
|
||||
/**
|
||||
* MDX ESM (import/export) node (for hast).
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||
export interface MdxjsEsmHast extends HastLiteral {
|
||||
/**
|
||||
* Node type.
|
||||
*/
|
||||
type: 'mdxjsEsm'
|
||||
|
||||
/**
|
||||
* Data.
|
||||
*/
|
||||
data?: {
|
||||
/**
|
||||
* Program node from estree.
|
||||
*/
|
||||
// eslint-disable-next-line @typescript-eslint/ban-types
|
||||
estree?: Program | null | undefined
|
||||
}
|
||||
}
|
||||
|
||||
// Add nodes to mdast content.
|
||||
declare module 'mdast' {
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||
interface FrontmatterContentMap {
|
||||
/**
|
||||
* MDX ESM.
|
||||
*/
|
||||
mdxjsEsm: MdxjsEsm
|
||||
}
|
||||
}
|
||||
|
||||
// Add nodes to hast content.
|
||||
declare module 'hast' {
|
||||
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
|
||||
interface RootContentMap {
|
||||
/**
|
||||
* MDX ESM.
|
||||
*/
|
||||
mdxjsEsm: MdxjsEsmHast
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue