Skip to content

Commit 351f659

Browse files
committed
WIP instance form work
1 parent 0e61aac commit 351f659

File tree

16 files changed

+515
-144
lines changed

16 files changed

+515
-144
lines changed

app/forms/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import type { EditSubnetForm } from './subnet-edit'
33
import type { CreateOrgForm } from './org-create'
44
import type { CreateDiskForm } from './disk-create'
55
import type { CreateProjectForm } from './project-create'
6+
import type CreateInstanceForm from './instance-create'
7+
import type { ExtractFormValues } from '@oxide/form'
68

79
/**
810
* A map of all existing forms. When a new form is created in the forms directory, a
@@ -12,7 +14,12 @@ import type { CreateProjectForm } from './project-create'
1214
export interface FormTypes {
1315
'org-create': typeof CreateOrgForm
1416
'project-create': typeof CreateProjectForm
17+
'instance-create': typeof CreateInstanceForm
1518
'disk-create': typeof CreateDiskForm
1619
'subnet-create': typeof CreateSubnetForm
1720
'subnet-edit': typeof EditSubnetForm
1821
}
22+
23+
export type FormValues<K extends keyof FormTypes> = ExtractFormValues<
24+
FormTypes[K]
25+
>

0 commit comments

Comments
 (0)