Skip to content

how to type import * as meta from "index.mdx"? #205

Answered by wooorm
deadcoder0904 asked this question in Q&A
Discussion options

You must be logged in to vote

a) Please read the readme of remark-mdx-frontmatter on how to use it: https://github.com/remcohaszing/remark-mdx-frontmatter#name, pass a name to it. Then it puts everything in an object for you.
b) You can attempt to type what MDX files expose: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/38f8f3f7b457dc38b52de08c23d66a5ced38bd9c/types/mdx/index.d.ts#L10-L53.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@remcohaszing
Comment options

@wooorm
Comment options

@remcohaszing
Comment options

@wooorm
Comment options

@deadcoder0904
Comment options

Answer selected by deadcoder0904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants