Skip to content

Commit 83da865

Browse files
Fix formatting
1 parent 725873f commit 83da865

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/server/plugins/engine/types.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ export type FormSubmissionState = {
9494
upload?: Record<string, TempFileState>
9595
} & FormState
9696

97-
export interface FormSubmissionError
98-
extends Pick<ValidationErrorItem, 'context' | 'path'> {
97+
export interface FormSubmissionError extends Pick<
98+
ValidationErrorItem,
99+
'context' | 'path'
100+
> {
99101
href: string // e.g: '#dateField__day'
100102
name: string // e.g: 'dateField__day'
101103
text: string // e.g: 'Date field must be a real date'
@@ -579,8 +581,7 @@ export interface FormAdapterSubmissionMessagePayload {
579581
result: FormAdapterSubmissionMessageResult
580582
}
581583

582-
export interface FormAdapterSubmissionMessage
583-
extends FormAdapterSubmissionMessagePayload {
584+
export interface FormAdapterSubmissionMessage extends FormAdapterSubmissionMessagePayload {
584585
messageId: string
585586
recordCreatedAt: Date
586587
}

src/server/plugins/nunjucks/context.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ describe('Nunjucks context', () => {
3333
const { config } = await import('~/src/config/index.js')
3434

3535
// Import when isolated to avoid cache
36-
const { devtoolContext } = await import(
37-
'~/src/server/plugins/nunjucks/context.js'
38-
)
36+
const { devtoolContext } =
37+
await import('~/src/server/plugins/nunjucks/context.js')
3938

4039
// Update config for missing manifest
4140
config.set('publicDir', tmpdir())

src/server/routes/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ export interface FormParams extends Partial<Record<string, string>> {
2424
state?: FormStatus
2525
}
2626

27-
export interface FormRequestRefs
28-
extends Omit<ReqRefDefaults, 'Params' | 'Payload' | 'Query'> {
27+
export interface FormRequestRefs extends Omit<
28+
ReqRefDefaults,
29+
'Params' | 'Payload' | 'Query'
30+
> {
2931
Params: FormParams
3032
Payload: object | undefined
3133
Query: FormQuery

0 commit comments

Comments
 (0)