syntax-tree / mdast-util-gfm-table

mdast extension to parse and serialize GFM tables
https://unifiedjs.com
MIT License
13 stars 7 forks source link

Add missing dependency for types #2

Closed Methuselah96 closed 2 years ago

Methuselah96 commented 2 years ago

Initial checklist

Description of changes

Fix these type errors:

ERROR in ../../.yarn/cache/mdast-util-gfm-table-npm-1.0.3-e785b8b0a4-f310f06a57.zip/node_modules/mdast-util-gfm-table/index.d.ts 10:32-39
TS2307: Cannot find module 'mdast' or its corresponding type declarations.
     8 | /** @type {FromMarkdownExtension} */
     9 | export const gfmTableFromMarkdown: FromMarkdownExtension
  > 10 | export type AlignType = import('mdast').AlignType
       |                                ^^^^^^^
    11 | export type Table = import('mdast').Table
    12 | export type TableRow = import('mdast').TableRow
    13 | export type TableCell = import('mdast').TableCell

ERROR in ../../.yarn/cache/mdast-util-gfm-table-npm-1.0.3-e785b8b0a4-f310f06a57.zip/node_modules/mdast-util-gfm-table/index.d.ts 11:28-35
TS2307: Cannot find module 'mdast' or its corresponding type declarations.
     9 | export const gfmTableFromMarkdown: FromMarkdownExtension
    10 | export type AlignType = import('mdast').AlignType
  > 11 | export type Table = import('mdast').Table
       |                            ^^^^^^^
    12 | export type TableRow = import('mdast').TableRow
    13 | export type TableCell = import('mdast').TableCell
    14 | export type InlineCode = import('mdast').InlineCode

ERROR in ../../.yarn/cache/mdast-util-gfm-table-npm-1.0.3-e785b8b0a4-f310f06a57.zip/node_modules/mdast-util-gfm-table/index.d.ts 12:31-38
TS2307: Cannot find module 'mdast' or its corresponding type declarations.
    10 | export type AlignType = import('mdast').AlignType
    11 | export type Table = import('mdast').Table
  > 12 | export type TableRow = import('mdast').TableRow
       |                               ^^^^^^^
    13 | export type TableCell = import('mdast').TableCell
    14 | export type InlineCode = import('mdast').InlineCode
    15 | export type MarkdownTableOptions = import('markdown-table').MarkdownTableOptions

ERROR in ../../.yarn/cache/mdast-util-gfm-table-npm-1.0.3-e785b8b0a4-f310f06a57.zip/node_modules/mdast-util-gfm-table/index.d.ts 13:32-39
TS2307: Cannot find module 'mdast' or its corresponding type declarations.
    11 | export type Table = import('mdast').Table
    12 | export type TableRow = import('mdast').TableRow
  > 13 | export type TableCell = import('mdast').TableCell
       |                                ^^^^^^^
    14 | export type InlineCode = import('mdast').InlineCode
    15 | export type MarkdownTableOptions = import('markdown-table').MarkdownTableOptions
    16 | export type FromMarkdownExtension = import('mdast-util-from-markdown').Extension

ERROR in ../../.yarn/cache/mdast-util-gfm-table-npm-1.0.3-e785b8b0a4-f310f06a57.zip/node_modules/mdast-util-gfm-table/index.d.ts 14:33-40
TS2307: Cannot find module 'mdast' or its corresponding type declarations.
    12 | export type TableRow = import('mdast').TableRow
    13 | export type TableCell = import('mdast').TableCell
  > 14 | export type InlineCode = import('mdast').InlineCode
       |                                 ^^^^^^^
    15 | export type MarkdownTableOptions = import('markdown-table').MarkdownTableOptions
    16 | export type FromMarkdownExtension = import('mdast-util-from-markdown').Extension
    17 | export type FromMarkdownHandle = import('mdast-util-from-markdown').Handle

ERROR in ../../.yarn/cache/mdast-util-gfm-table-npm-1.0.3-e785b8b0a4-f310f06a57.zip/node_modules/mdast-util-gfm-table/index.d.ts 16:44-70
TS2307: Cannot find module 'mdast-util-from-markdown' or its corresponding type declarations.
    14 | export type InlineCode = import('mdast').InlineCode
    15 | export type MarkdownTableOptions = import('markdown-table').MarkdownTableOptions
  > 16 | export type FromMarkdownExtension = import('mdast-util-from-markdown').Extension
       |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
    17 | export type FromMarkdownHandle = import('mdast-util-from-markdown').Handle
    18 | export type ToMarkdownExtension = import('mdast-util-to-markdown').Options
    19 | export type ToMarkdownHandle = import('mdast-util-to-markdown').Handle

ERROR in ../../.yarn/cache/mdast-util-gfm-table-npm-1.0.3-e785b8b0a4-f310f06a57.zip/node_modules/mdast-util-gfm-table/index.d.ts 17:41-67
TS2307: Cannot find module 'mdast-util-from-markdown' or its corresponding type declarations.
    15 | export type MarkdownTableOptions = import('markdown-table').MarkdownTableOptions
    16 | export type FromMarkdownExtension = import('mdast-util-from-markdown').Extension
  > 17 | export type FromMarkdownHandle = import('mdast-util-from-markdown').Handle
       |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^
    18 | export type ToMarkdownExtension = import('mdast-util-to-markdown').Options
    19 | export type ToMarkdownHandle = import('mdast-util-to-markdown').Handle
    20 | export type ToMarkdownContext = import('mdast-util-to-markdown').Context
wooorm commented 2 years ago

Same as https://github.com/syntax-tree/mdast-util-gfm/pull/1#issuecomment-1066612194

wooorm commented 2 years ago
github-actions[bot] commented 2 years ago

Hi! This was closed. Team: If this was merged, please describe when this is likely to be released. Otherwise, please add one of the no/* labels.

wooorm commented 2 years ago

Released!