Skip to content

Commit

Permalink
client: typecheck and format.
Browse files Browse the repository at this point in the history
  • Loading branch information
thruflo committed Nov 18, 2024
1 parent 9a6eaf8 commit 9b5a518
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/typescript-client/src/shape.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Message, Row } from './types'
import { Message, Offset, Row } from './types'
import { isChangeMessage, isControlMessage } from './helpers'
import { FetchError } from './error'
import { ShapeStreamInterface } from './client'
Expand Down Expand Up @@ -70,7 +70,7 @@ export class Shape<T extends Row<unknown> = Row> {
return this.#stream.isUpToDate
}

get lastOffset(): boolean {
get lastOffset(): Offset {
return this.#stream.lastOffset
}

Expand Down
2 changes: 1 addition & 1 deletion packages/typescript-client/test/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ describe(`Shape`, () => {
})
const shape = new Shape(shapeStream)

expect(shapeStream.lastOffset).toBe("-1")
expect(shapeStream.lastOffset).toBe(`-1`)
expect(shape.lastOffset).toBe(shapeStream.lastOffset)

shape.unsubscribeAll()
Expand Down

0 comments on commit 9b5a518

Please sign in to comment.