Skip to content

typescript #11

Open
Open
@newbie78

Description

@newbie78

why fieldValues: Partial<T> not fieldValues: T?

https://github.com/beizhedenglong/vue-hooks-form/blob/c7079209c7757a628432f0c7cc2e5c9dd0358797/src/useForm.ts#L148C36-L148C47

i'm got error like this

  public do(data: Partial<T>): void {
    thirdParty.process(T); //<-- Argument of type 'Partial<T>' is not assignable to parameter of type 'T'.
  }

tnx for great package!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions