Skip to content

feat: importable getFormContext #1192

feat: importable getFormContext

feat: importable getFormContext #1192

Triggered via pull request November 28, 2025 13:33
Status Failure
Total duration 1m 35s
Artifacts

check-pull-request.yml

on: pull_request
Matrix: build
Matrix: tasks
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 1 warning
Build (Node 23)
Process completed with exit code 2.
Build (Node 23): src/server/plugins/engine/form-context.ts#L322
Element implicitly has an 'any' type because expression of type 'ComponentType.TextField | ComponentType.MultilineTextField | ComponentType.YesNoField | ComponentType.DatePartsField | ComponentType.MonthYearField | ComponentType.SelectField | ... 13 more ... | ComponentType.HiddenField' can't be used to index type '{ UkAddressField: string; DatePartsField: string; MonthYearField: string; NumberField: string; CheckboxesField: string; FileUploadField: string; }'.
Build (Node 23): src/server/plugins/engine/form-context.ts#L279
Argument of type 'Pick<FormContext, "state" | "relevantPages">' is not assignable to parameter of type 'FormContext'.
Build (Node 23): src/server/plugins/engine/form-context.ts#L143
Argument of type '{ $$__referenceNumber: string | number | boolean | (string | number | boolean)[] | UploadState | RepeatListState; upload?: Record<string, TempFileState>; }' is not assignable to parameter of type 'Partial<Record<string, FormStateValue>>'.
Build (Node 23): src/server/plugins/engine/form-context.ts#L131
Argument of type '({ method: "get"; payload?: undefined; } & Pick<FormRequest, "url" | "path" | "app" | "method" | "params" | "query" | "server"> & { yar: Yar; }) | ({ method: "search" | ... 32 more ... | "unsubscribe"; payload?: object | undefined; } & Pick<...> & { ...; })' is not assignable to parameter of type 'AnyRequest'.
Build (Node 22)
Process completed with exit code 2.
Build (Node 22): src/server/plugins/engine/form-context.ts#L322
Element implicitly has an 'any' type because expression of type 'ComponentType.TextField | ComponentType.MultilineTextField | ComponentType.YesNoField | ComponentType.DatePartsField | ComponentType.MonthYearField | ComponentType.SelectField | ... 13 more ... | ComponentType.HiddenField' can't be used to index type '{ UkAddressField: string; DatePartsField: string; MonthYearField: string; NumberField: string; CheckboxesField: string; FileUploadField: string; }'.
Build (Node 22): src/server/plugins/engine/form-context.ts#L279
Argument of type 'Pick<FormContext, "state" | "relevantPages">' is not assignable to parameter of type 'FormContext'.
Build (Node 22): src/server/plugins/engine/form-context.ts#L143
Argument of type '{ $$__referenceNumber: string | number | boolean | (string | number | boolean)[] | UploadState | RepeatListState; upload?: Record<string, TempFileState>; }' is not assignable to parameter of type 'Partial<Record<string, FormStateValue>>'.
Build (Node 22): src/server/plugins/engine/form-context.ts#L131
Argument of type '({ method: "get"; payload?: undefined; } & Pick<FormRequest, "url" | "path" | "app" | "method" | "params" | "query" | "server"> & { yar: Yar; }) | ({ method: "search" | ... 32 more ... | "unsubscribe"; payload?: object | undefined; } & Pick<...> & { ...; })' is not assignable to parameter of type 'AnyRequest'.
Build (Node 24)
Process completed with exit code 2.
Build (Node 24): src/server/plugins/engine/form-context.ts#L322
Element implicitly has an 'any' type because expression of type 'ComponentType.TextField | ComponentType.MultilineTextField | ComponentType.YesNoField | ComponentType.DatePartsField | ComponentType.MonthYearField | ComponentType.SelectField | ... 13 more ... | ComponentType.HiddenField' can't be used to index type '{ UkAddressField: string; DatePartsField: string; MonthYearField: string; NumberField: string; CheckboxesField: string; FileUploadField: string; }'.
Build (Node 24): src/server/plugins/engine/form-context.ts#L279
Argument of type 'Pick<FormContext, "state" | "relevantPages">' is not assignable to parameter of type 'FormContext'.
Build (Node 24): src/server/plugins/engine/form-context.ts#L143
Argument of type '{ $$__referenceNumber: string | number | boolean | (string | number | boolean)[] | UploadState | RepeatListState; upload?: Record<string, TempFileState>; }' is not assignable to parameter of type 'Partial<Record<string, FormStateValue>>'.
Build (Node 24): src/server/plugins/engine/form-context.ts#L131
Argument of type '({ method: "get"; payload?: undefined; } & Pick<FormRequest, "url" | "path" | "app" | "method" | "params" | "query" | "server"> & { yar: Yar; }) | ({ method: "search" | ... 32 more ... | "unsubscribe"; payload?: object | undefined; } & Pick<...> & { ...; })' is not assignable to parameter of type 'AnyRequest'.
Vulnerability warning
This version of the SonarQube Scanner GitHub Action is no longer supported and contains a security vulnerability. Please update your workflow to use sonarsource/sonarqube-scan-action@v6 for the latest security patches and features. For more information visit https://community.sonarsource.com/gha-v6-update