Skip to content

chore: replace Partial<> with VoidableProps<> for PATCH types #139

Description

@arturasmckwcz

Context

Partial<T> makes fields T | undefined, but database drivers return null for missing values. PATCH request types should use VoidableProps<T> (already in utils.ts) which gives { [P in keyof T]?: T[P] | null }.

What to do

Audit all Partial<XxxPost> PATCH types across the SDK and replace with VoidableProps<XxxPost>.

Known instance:

  • ApiAppreciationPatch = Partial<ApiAppreciationPost>VoidableProps<ApiAppreciationPost>

Check all other *Patch and *Update types for the same pattern.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions