Skip to content

Commit

Permalink
fix!: define string metadata type (#641)
Browse files Browse the repository at this point in the history
The record values are added as `string | number | boolean` so
reflect that in the listed type.

BREAKING CHANGE: the metadata record value field has changed from `any` to `string | number | boolean`
  • Loading branch information
achingbrain authored Oct 2, 2024
1 parent 4f14996 commit c04dbf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interface/src/pins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type PinType = 'recursive' | 'direct' | 'indirect'
export interface Pin {
cid: CID
depth: number
metadata: Record<string, any>
metadata: Record<string, string | number | boolean>
}

export type AddPinEvents =
Expand Down

0 comments on commit c04dbf5

Please sign in to comment.