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

Should the type of node.type be NodeType instead of string #119

Closed
matv-stripe opened this issue Jul 8, 2022 · 2 comments · Fixed by #120
Closed

Should the type of node.type be NodeType instead of string #119

matv-stripe opened this issue Jul 8, 2022 · 2 comments · Fixed by #120
Assignees

Comments

@matv-stripe
Copy link
Contributor

Currently this is a string:

type: string;

Should these be of this type?
https://github.com/markdoc/markdoc/blob/main/src/types.ts#L60

@mfix-stripe
Copy link
Contributor

mfix-stripe commented Jul 11, 2022

Should these be of this type?
https://github.com/markdoc/markdoc/blob/main/src/types.ts#L60

I think we can make this type: NodeType | 'node' | 'tag' | 'error'. WDYT @rpaul-stripe?

@mfix-stripe
Copy link
Contributor

Or we could add 'node' | 'tag' | 'error' to NodeType

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 a pull request may close this issue.

3 participants