Skip to content

Commit

Permalink
export field types (#6481)
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamsi authored Sep 14, 2021
1 parent 4e485a9 commit 7621d0d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-houses-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': patch
---

Exported Field types to help in updating contrib packages
14 changes: 14 additions & 0 deletions packages/keystone/src/fields/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
export { autoIncrement } from './types/autoIncrement';
export type { AutoIncrementFieldConfig } from './types/autoIncrement';
export { checkbox } from './types/checkbox';
export type { CheckboxFieldConfig } from './types/checkbox';
export { decimal } from './types/decimal';
export type { DecimalFieldConfig } from './types/decimal';
export { file } from './types/file';
export type { FileFieldConfig } from './types/file';
export { float } from './types/float';
export type { FloatFieldConfig } from './types/float';
export { integer } from './types/integer';
export type { IntegerFieldConfig } from './types/integer';
export { image } from './types/image';
export type { ImageFieldConfig } from './types/image';
export { json } from './types/json';
export type { JsonFieldConfig } from './types/json';
export { password } from './types/password';
export type { PasswordFieldConfig } from './types/password';
export { relationship } from './types/relationship';
export type { RelationshipFieldConfig } from './types/relationship';
export { select } from './types/select';
export type { SelectFieldConfig } from './types/select';
export { text } from './types/text';
export type { TextFieldConfig } from './types/text';
export { timestamp } from './types/timestamp';
export type { TimestampFieldConfig } from './types/timestamp';
export { virtual } from './types/virtual';
export type { VirtualFieldConfig } from './types/virtual';
2 changes: 1 addition & 1 deletion packages/keystone/src/fields/types/password/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from '../../../types';
import { resolveView } from '../../resolve-view';

type PasswordFieldConfig<TGeneratedListTypes extends BaseGeneratedListTypes> =
export type PasswordFieldConfig<TGeneratedListTypes extends BaseGeneratedListTypes> =
CommonFieldConfig<TGeneratedListTypes> & {
/**
* @default 8
Expand Down

0 comments on commit 7621d0d

Please sign in to comment.