Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add meta info to an entry #12

Merged
merged 2 commits into from
Jan 3, 2022
Merged

Add meta info to an entry #12

merged 2 commits into from
Jan 3, 2022

Conversation

nekoya
Copy link
Owner

@nekoya nekoya commented Jan 3, 2022

Add meta info to MDX and show description of entries.

@@ -0,0 +1,6 @@
declare module "*.mdx" {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extends declaration at @types/mdx

export const meta = {
title: "Hello",
published: "2022-01-04",
};
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In actual, tsc does not check this meta typing.

microsoft/TypeScript#36440

@nekoya nekoya merged commit ecc72be into main Jan 3, 2022
@nekoya nekoya deleted the meta_on_entry branch January 3, 2022 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant