diff options
author | 2023-11-21 12:09:19 +0800 | |
---|---|---|
committer | 2023-11-21 12:09:19 +0800 | |
commit | abf601233f8188d118a8cb063c777478d8d9f1a3 (patch) | |
tree | 357fc25bc46528a4420b098b33caf062ae0d4af0 /packages/markdown/remark/src | |
parent | 6201bbe96c2a083fb201e4a43a9bd88499821a3e (diff) | |
download | astro-abf601233f8188d118a8cb063c777478d8d9f1a3.tar.gz astro-abf601233f8188d118a8cb063c777478d8d9f1a3.tar.zst astro-abf601233f8188d118a8cb063c777478d8d9f1a3.zip |
Update all dependencies (#9138)
Co-authored-by: delucis <delucis@users.noreply.github.com>
Diffstat (limited to 'packages/markdown/remark/src')
-rw-r--r-- | packages/markdown/remark/src/types.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/markdown/remark/src/types.ts b/packages/markdown/remark/src/types.ts index 7038e2425..d0a6a13c2 100644 --- a/packages/markdown/remark/src/types.ts +++ b/packages/markdown/remark/src/types.ts @@ -1,10 +1,7 @@ import type * as hast from 'hast'; import type * as mdast from 'mdast'; -import type { - one as Handler, - all as Handlers, - Options as RemarkRehypeOptions, -} from 'remark-rehype'; +import type { Options as RemarkRehypeOptions } from 'remark-rehype'; +import type { State } from 'mdast-util-to-hast'; import type { BuiltinTheme, LanguageRegistration, @@ -14,6 +11,9 @@ import type { import type * as unified from 'unified'; import type { VFile } from 'vfile'; +type Handler = State['one']; +type Handlers = State['all']; + export type { Node } from 'unist'; export type MarkdownAstroData = { @@ -35,8 +35,8 @@ export type RehypePlugin<PluginParameters extends any[] = any[]> = unified.Plugi export type RehypePlugins = (string | [string, any] | RehypePlugin | [RehypePlugin, any])[]; export type RemarkRehype = Omit<RemarkRehypeOptions, 'handlers' | 'unknownHandler'> & { - handlers?: typeof Handlers; - handler?: typeof Handler; + handlers?: Handlers; + handler?: Handler; }; export interface ShikiConfig { |