Skip to content

Commit

Permalink
[types] Add schema type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent ff93ea0 commit 3d7b030
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/@sanity/types/src/schema/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// Note: INCOMPLETE, but it's a start

export interface Schema {
name: string
get: (name: string) => SchemaType
has: (name: string) => boolean
getTypeNames: () => string[]
}

export interface BaseSchemaType {
name: string
title?: string
Expand Down

0 comments on commit 3d7b030

Please sign in to comment.