diff --git a/src/index.ts b/src/index.ts index 0de5004..2fe9eaf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,7 +5,7 @@ import replacements from './replacements.js' export type { AstroData, AstroText } from './nodes.js' -export function mdastAstro(tree: Nodes) { +export function mdastAstro(tree: T) { findAndReplace(tree, replacements) return tree }