Skip to content

Commit

Permalink
Fix build (#2862)
Browse files Browse the repository at this point in the history
add missing ts dependency
  • Loading branch information
matthieusieben authored Oct 4, 2024
1 parent 72549f4 commit 08ed0a5
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-tips-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/bsky": patch
---

Add missing dev-dependency
5 changes: 5 additions & 0 deletions .changeset/short-cougars-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/ozone": patch
---

Add proper typings
3 changes: 2 additions & 1 deletion packages/bsky/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"@types/qs": "^6.9.7",
"axios": "^0.27.2",
"jest": "^28.1.2",
"ts-node": "^10.8.2"
"ts-node": "^10.8.2",
"typescript": "^5.4.4"
}
}
2 changes: 1 addition & 1 deletion packages/ozone/src/daemon/blob-diverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class BlobDiverter {
subjectBlobCids,
}: {
subjectDid: string
subjectUri: string
subjectUri: string | null
subjectBlobCids: string[]
}): Promise<boolean> {
const didDoc = await this.idResolver.did.resolve(subjectDid)
Expand Down
18 changes: 9 additions & 9 deletions packages/ozone/src/mod-service/subject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ export class RepoSubject implements ModSubject {
blobCids = undefined
recordPath = undefined
constructor(public did: string) {}
isRepo() {
isRepo(): this is RepoSubject {
return true
}
isRecord() {
isRecord(): this is RecordSubject {
return false
}
isMessage() {
isMessage(): this is MessageSubject {
return false
}
info() {
Expand Down Expand Up @@ -154,13 +154,13 @@ export class RecordSubject implements ModSubject {
this.did = this.parsedUri.hostname
this.recordPath = `${this.parsedUri.collection}/${this.parsedUri.rkey}`
}
isRepo() {
isRepo(): this is RepoSubject {
return false
}
isRecord() {
isRecord(): this is RecordSubject {
return true
}
isMessage() {
isMessage(): this is MessageSubject {
return false
}
info() {
Expand Down Expand Up @@ -191,13 +191,13 @@ export class MessageSubject implements ModSubject {
public convoId: string,
public messageId: string,
) {}
isRepo() {
isRepo(): this is RepoSubject {
return false
}
isRecord() {
isRecord(): this is RecordSubject {
return false
}
isMessage() {
isMessage(): this is MessageSubject {
return true
}
info() {
Expand Down
5 changes: 4 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08ed0a5

Please sign in to comment.