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

Consider removing the distinction between document and nested types #225

Open
seancdavis opened this issue May 17, 2022 · 0 comments
Open

Comments

@seancdavis
Copy link
Collaborator

seancdavis commented May 17, 2022

From the beginning, we've separated the idea of documents and nested types. The primary difference between these types is that:

  • Document types define the shape of built content files
  • Nested types define shapes of content used within built content files

We may be able to simplify the API by considering every type definition as just that — a type definition. We already have to define documentTypes when calling makeSource. Could this be the way in which documents are defined, while every other type is just a type.

#226 contains a way we could adjust terminology if making this change to help with the language we're using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants