add missing ts dependency
This commit is contained in:
Matthieu Sieben 2024-10-04 11:40:50 +02:00 committed by GitHub
parent 72549f4422
commit 08ed0a5a91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 26 additions and 12 deletions

@ -0,0 +1,5 @@
---
"@atproto/bsky": patch
---
Add missing dev-dependency

@ -0,0 +1,5 @@
---
"@atproto/ozone": patch
---
Add proper typings

@ -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"
}
}

@ -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)

@ -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() {
@ -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() {
@ -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() {

5
pnpm-lock.yaml generated

@ -289,6 +289,9 @@ importers:
ts-node:
specifier: ^10.8.2
version: 10.8.2(@swc/core@1.3.42)(@types/node@18.19.50)(typescript@5.4.4)
typescript:
specifier: ^5.4.4
version: 5.4.4
packages/bsync:
dependencies:
@ -13200,4 +13203,4 @@ packages:
engines: {node: '>=10'}
/zod@3.23.8:
resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}
resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==}