# Implementation OP-20349 - Frontend typings: HalResource index signature

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-20349

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer |  |
| Developers | Alexander Coles |

## Technical details

| Attribute | Value |
| --- | --- |
| Target versions | 18.0.0 |
| Module |  |
| Requires doc change | No |

## Belongs to

_No work packages_

## Previous chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| OP-20344 | Frontend typings: HAL resources | closed |  |

## Next chunks

| ID | Subject | Status | Assignee |
| --- | --- | --- | --- |
| OP-20345 | Frontend typings: fields framework | closed |  |
| OP-20346 | Frontend typings: query and API payloads | closed |  |
| OP-20347 | Frontend typings: work package views and context menus | closed |  |
| OP-20348 | Frontend typings: remaining modules | closed |  |

## Estimates

| Attribute | Value |
| --- | --- |
| Work |  |

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| % Complete | 100% |
| Category |  |
| Sprint |  |
| Backlog bucket |  |
| Priority | Medium |
| List |  |
| Pull preview |  |
| Labels |  |

## Description

## Context

Part of <mention class="mention" data-id="OP-20341" data-type="work_package" data-text="#OP-20341">#OP-20341</mention>: frontend ESLint reports typing violations (`no-explicit-any`, `no-unsafe-*`) on any touched line, so unrelated debt shows up in every PR. `HalResource` declares an `[attribute:string]:any` index signature, which its own code comment has flagged as a source of bugs since 2019 (<mention class="mention" data-id="31462" data-type="work_package" data-text="#31462">#31462</mention>). Removing it surfaces type errors well beyond `features/hal`, mostly in fields and work package views, including spec sources.

## Goal

Replace the `any` index signature on `HalResource` with `unknown` and resolve the resulting type errors without changing behaviour.

## Acceptance criteria

  - `HalResource` no longer declares an `any` index signature.
  - `npm run typecheck` (application and spec sources) and the existing frontend and feature specs pass unchanged.

## Notes

Builds on the additive HAL typing in <mention class="mention" data-id="OP-20344" data-type="work_package" data-text="#OP-20344">#OP-20344</mention>. Fixes default to casts at the boundary that keep today's behaviour; runtime narrowing is used only where it is a deliberate change.
