Skip to content

Commit

Permalink
fix(types): experimental search paths are compiled to string arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Sep 10, 2021
1 parent 819334c commit be20701
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/@sanity/types/src/schema/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@ export interface ObjectSchemaType extends BaseSchemaType {
initialValue?: InitialValueProperty<Record<string, unknown>>

// Experimentals
/* eslint-disable camelcase */
__experimental_search?: {path: string; weight: number; mapWith?: string}[]
/* eslint-enable camelcase */
// Note: `path` is a string in the _specification_, but converted to a
// string array in the schema normalization/compilation step
// eslint-disable-next-line camelcase
__experimental_search?: {path: string[]; weight: number; mapWith?: string}[]
}

export interface ObjectSchemaTypeWithOptions extends ObjectSchemaType {
Expand Down

2 comments on commit be20701

@vercel
Copy link

@vercel vercel bot commented on be20701 Sep 10, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

@vercel
Copy link

@vercel vercel bot commented on be20701 Sep 10, 2021

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

perf-studio – ./

perf-studio-git-next.sanity.build
perf-studio.sanity.build

Please sign in to comment.