Commit fb29a89
fix(sdk-react): use HypercertProject instead of HypercertProjectWithMetadata in Project type
Without this patch, the Project type defined the record property as
HypercertProjectWithMetadata, but the useProjects and useProject hooks
were creating objects with record: HypercertProject. This caused
TypeScript errors because HypercertProjectWithMetadata is not a nested
structure with uri/cid/record properties.
This was a problem because the type mismatch prevented the sdk-react
package from passing typecheck, blocking development and builds.
This patch solves the problem by:
- Importing HypercertProject from @hypercerts-org/sdk-core
- Changing the Project type to use record: HypercertProject
- Removing the unused HypercertProjectWithMetadata import and re-export
The HypercertProject type correctly represents a project record without
the resolved metadata fields, matching what the hooks actually return.
Co-authored-by: Claude Code <claude-code@noreply.anthropic.com>1 parent 750cd44 commit fb29a89
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
| 399 | + | |
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| |||
0 commit comments