Skip to content
This repository was archived by the owner on Aug 10, 2026. It is now read-only.

eslint-plugin-ts-data-forge@0.4.0

Choose a tag to compare

released this 05 Aug 15:12
· 11 commits to main since this release
Immutable release. Only release title and notes can be modified.
c9b631f

Minor Changes

  • 0dcdcbc: prefer-is-record-and-has-key now drops the isRecord(...) conjunct when the
    object already satisfies hasKey's R extends UnknownRecord constraint, so
    Object.hasOwn(record, key) on a record-typed value rewrites to
    hasKey(record, key) instead of isRecord(record) && hasKey(record, key).

    The check needs type information; without it the guard is kept, as before. It
    is deliberately conservative — a type TypeScript would accept through an
    implicit index signature keeps the guard — and callables and arrays keep it
    too, because isRecord rejects those at runtime.

    no-unnecessary-type-guard recognizes isRecord for the same reason: it now
    reports isRecord(x) as always true when every union member already
    satisfies UnknownRecord, and as always false when none of them can (every
    primitive, array, tuple and callable).

Patch Changes

  • 938bc58: Widen the @typescript-eslint/utils dependency to ^8.65.0 and pin
    ts-type-forge to ~9.1.1.