Skip to content

Commit

Permalink
feat: restore form type
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed May 6, 2021
1 parent 6b73a20 commit c38e067
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ export interface Repository {
languages: Language[]
types: Record<string, string>
tags: string[]
// forms: Record<string, Form>
forms: Record<string, Form>
/**
* @deprecated
*/
experiments: unknown
oauth_initiate: string
oauth_token: string
Expand All @@ -57,3 +60,18 @@ export interface Query<TDocument extends Document = Document> {
prev_page: string | null
results: TDocument[]
}

export interface Form {
method: 'GET'
enctype: string
action: string
name?: string
rel?: string
fields: Record<string, FormField>
}

export interface FormField {
type: 'String' | 'Integer'
multiple: boolean
default?: string
}

0 comments on commit c38e067

Please sign in to comment.