keystone icon indicating copy to clipboard operation
keystone copied to clipboard

Removes deprecated types (and ListSchemaConfig)

Open dcousens opened this issue 2 years ago • 1 comments

This pull request removes the unused first type parameter from ListConfig, ListAdminUIConfig types, and from the list and group function types.

This should allow developers to now use list<Lists.Post> instead of list<any, Lists.Post>.

This pull request also removes the ListSchemaConfig type, use Config['lists']' from .keystone/types(orKeystoneConfig['lists']from@keystone-6/core/types`).

Lastly, this pullr equest renames Lists.*.TypeInfo.all to Lists.*.TypeInfo.SchemaTypeInfo, to verbosely show where any circular types might be appearing from. (suspect for https://github.com/keystonejs/keystone/issues/8749)

dcousens avatar Aug 14 '23 01:08 dcousens