Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 28 Dec 19:03
· 17 commits to master since this release
af07e7a

Patch Changes

  • #3333 1777546 Thanks @renovate! - Resource.extend() compatibility with TypeScript 5

    Previously extending existing members with no
    typed overrides (like path) would not work starting with
    TypeScript 5.7.

    const UserResource = UserResourceBase.extend({
      partialUpdate: {
        getOptimisticResponse(snap, params, body) {
          params.id;
          params.group;
          // @ts-expect-error
          params.nothere;
          return {
            id: params.id,
            ...body,
          };
        },
      },
    });