Skip to content

Commit

Permalink
Dont reexport CID type (bluesky-social#277)
Browse files Browse the repository at this point in the history
dont reexport cid
  • Loading branch information
dholms authored Oct 27, 2022
1 parent 9b66f20 commit 21ff052
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions packages/common/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ const cid = z
})
.transform((obj: unknown) => mf.CID.asCID(obj) as mf.CID)

// const cid = z.instanceof(mf.CID)
export type CID = z.infer<typeof cid>

export const isCid = (str: string): boolean => {
try {
mf.CID.parse(str)
Expand Down
2 changes: 1 addition & 1 deletion packages/pds/src/db/records/repost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AtUri } from '@atproto/uri'
import * as Repost from '../../lexicon/types/app/bsky/repost'
import { DbRecordPlugin, Notification } from '../types'
import * as schemas from '../schemas'
import { CID } from '@atproto/common'
import { CID } from 'multiformats/cid'

const type = schemas.ids.AppBskyRepost
const tableName = 'app_bsky_repost'
Expand Down

0 comments on commit 21ff052

Please sign in to comment.