Skip to content

Commit

Permalink
chore(types): remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Nov 21, 2022
1 parent ce53bc6 commit 618d2dc
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions packages/@sanity/types/src/schema/preview.ts
Expand Up @@ -24,20 +24,3 @@ export interface PreviewConfig<
select?: Select
prepare?: (value: PrepareValue, viewOptions?: PrepareViewOptions) => PreviewValue
}

function test<
Select extends Record<string, string>,
PrepareValue extends Record<keyof Select, any>
>(preview: PreviewConfig<Select, PrepareValue>) {
return preview
}

const t = test({
select: {
title: 'title',
subtitle: 'subtitle',
},
prepare({title}: {title: string}) {
return {}
},
})

0 comments on commit 618d2dc

Please sign in to comment.