Closed angeloashmore closed 2 years ago
Adjusted src/index.ts
to export all of the types directly rather than indirectly via export *
.
I think I prefer the new way. What do you think, @lihbr? Keep in mind that the nested index.ts
files have been removed to reduce the maintenance burden.
I think I prefer the new version too.
Good to merge?
Yup! I think itās at a good point.
Types of changes
Description
This PR further re-organizes all types into the following categories, each with their own directory:
api
graphql
model
value
webhook
Within each directory, individual files contain a single concept. A kind of field, for example, is a concept.
It splits up previously grouped concepts, like Link and Link to Media fields, into their own files. See
src/value/link.ts
andsrc/value/linkToMedia.ts
for an example.This organization is modeled after
@prismicio/mock
(see thesrc
directory there).Field renames
The following types were renamed to better represent their underlying concept:
RelationField
->ContentRelationshipField
FilledLinkToDocumentField
->FilledContentRelationshipField
The old names are still exported as aliases, but perhaps they could be removed in š„ The Big Merge.
Checklist:
š