This repository was archived by the owner on Dec 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -1204,9 +1204,9 @@ caniuse-api@^3.0.0:
1204
1204
lodash.uniq "^4.5.0"
1205
1205
1206
1206
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001426 :
1207
- version "1.0.30001431 "
1208
- resolved "https://registry.yarnpkg.com /caniuse-lite/-/caniuse-lite-1.0.30001431 .tgz#e7c59bd1bc518fae03a4656be442ce6c4887a795 "
1209
- integrity sha512-zBUoFU0ZcxpvSt9IU66dXVT/3ctO1cy4y9cscs1szkPlcWb6pasYM144GqrUygUbT+k7cmUCW61cvskjcv0enQ ==
1207
+ version "1.0.30001504 "
1208
+ resolved "https://registry.npmjs.org /caniuse-lite/-/caniuse-lite-1.0.30001504 .tgz"
1209
+ integrity sha512-5uo7eoOp2mKbWyfMXnGO9rJWOGU8duvzEiYITW+wivukL7yHH4gX9yuRaobu6El4jPxo6jKZfG+N6fB621GD/Q ==
1210
1210
1211
1211
chalk@^2.0.0 :
1212
1212
version "2.4.2"
Original file line number Diff line number Diff line change 1
1
import type { RelationshipField } from 'payload/dist/fields/config/types'
2
- import type { Field } from 'payload/types'
3
2
4
- const createParentField = ( relationTo : string , overrides ?: Partial < RelationshipField > ) : Field => ( {
3
+ const createParentField = (
4
+ relationTo : string ,
5
+ overrides ?: Partial <
6
+ RelationshipField & {
7
+ hasMany : false
8
+ }
9
+ > ,
10
+ ) : RelationshipField => ( {
5
11
name : 'parent' ,
6
12
relationTo,
7
13
type : 'relationship' ,
You can’t perform that action at this time.
0 commit comments