Skip to content

Commit

Permalink
Remove un-implememented singleton export (#5524)
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Apr 23, 2021
1 parent 9fd7cc6 commit ddf5172
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-dogs-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': patch
---

Removed un-implemented export `singleton` from `schema/`.
2 changes: 1 addition & 1 deletion packages-next/keystone/src/schema/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { createSchema, list, singleton, gql, graphQLSchemaExtension, config } from './schema';
export { createSchema, list, gql, graphQLSchemaExtension, config } from './schema';
export type {
ListSchemaConfig,
ListConfig,
Expand Down
6 changes: 0 additions & 6 deletions packages-next/keystone/src/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ export function list<Fields extends BaseFields<BaseGeneratedListTypes>>(
return config;
}

export function singleton<Fields extends BaseFields<BaseGeneratedListTypes>>(
config: ListConfig<BaseGeneratedListTypes, Fields>
) {
return config;
}

export function gql(strings: TemplateStringsArray) {
return strings[0];
}
Expand Down

1 comment on commit ddf5172

@vercel
Copy link

@vercel vercel bot commented on ddf5172 Apr 23, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.