Skip to content

Commit

Permalink
fix: CreatedUpdated type
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Nov 9, 2024
1 parent 9462678 commit 40befe6
Show file tree
Hide file tree
Showing 3 changed files with 670 additions and 703 deletions.
1 change: 1 addition & 0 deletions src/http/fetcher.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ test('mocking fetch', async () => {
_assertIsError(err, HttpRequestError)

// This is how "default tooling" prints errors
// eslint-disable-next-line @typescript-eslint/no-base-to-string
expect(String(err)).toMatchInlineSnapshot(`"HttpRequestError: 500 GET some"`)

// This is how Jest prints errors
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export type StringEnum = Record<string, string>

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
export type CreatedUpdated = {
created: number
updated: number
created: UnixTimestamp
updated: UnixTimestamp
}

export interface CreatedUpdatedId extends CreatedUpdated {
Expand Down
Loading

0 comments on commit 40befe6

Please sign in to comment.