Description
Part of the strict-mode rollout epic #35932. Enable TypeScript strict mode for the data-access project.
- Dependency layer: 3 (0 = leaf library, 10 = top-level app)
- Internal dependents: 27 project(s) — the graph reports 27, not the 23 originally stated
- Rollout order: 15 / 44
- Note: Shared services hub - high leverage.
Note: the original acceptance criteria referenced typescript-strict-plugin, npx tsc-strict, and // @ts-strict-ignore. That approach was dropped by the epic — the plugin was never installed. The ACs below reflect the approach actually in force, documented in core-web/CLAUDE.md → TypeScript Strict Mode.
⚠️ The six flags are already present in this project's tsconfig.json — and inert. data-access has no build target, so its own tsconfig is never read, and its 27 dependents compile these sources under their own non-strict configs. 36 lib errors and 47 spec errors sit behind those flags with CI green. The work here is fixing them, not adding flags.
Acceptance Criteria
⚠️ nx run data-access:test does not type-check. tsconfig.spec.json sets isolatedModules: true, which puts ts-jest in transpile-only mode. Passing tests are not evidence of type-cleanliness here; tsc -p is the acceptance test.
Priority
Medium
Additional Context
One project in the bottom-up rollout tracked by epic #35932.
Description
Part of the strict-mode rollout epic #35932. Enable TypeScript
strictmode for thedata-accessproject.Acceptance Criteria
data-access's owntsconfig.json(already true — do not re-add):forceConsistentCasingInFileNames,strict,noImplicitOverride,noPropertyAccessFromIndexSignature,noImplicitReturns,noFallthroughCasesInSwitch.tsc -p libs/data-access/tsconfig.lib.json --noEmitreports 0 errors.tsc -p libs/data-access/tsconfig.spec.json --noEmitreports 0 errors.any. Genuinely nullable declarations are widened rather than silenced.@ts-expect-errorwith a// TODO(#35948):note only where unavoidable; never a blanket@ts-ignore.nx run data-access:lintand:testpass, with the test count unchanged.dotcms-ui,ui).Priority
Medium
Additional Context
One project in the bottom-up rollout tracked by epic #35932.