Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

[bug] allow interface for object #35

Open
AsPulse opened this issue Mar 21, 2023 · 0 comments
Open

[bug] allow interface for object #35

AsPulse opened this issue Mar 21, 2023 · 0 comments

Comments

@AsPulse
Copy link
Member

AsPulse commented Mar 21, 2023

type Person = {
  name: string;
  age: string;
};
const { sugar } = useSugarForm(...);
sugar.useObject(); // OK
interface Person {
  name: string;
  age: string;
};
const { sugar } = useSugarForm(...);
sugar.useObject(); // NG
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant