Skip to content

Commit b06727a

Browse files
committed
Improve type assertion
This worked correctly before, but let's clarify it using parenthesis.
1 parent 386862d commit b06727a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class InstapaperAPI {
130130
token,
131131
)
132132

133-
const data = await response.json as [InstapaperAccount]
133+
const data = (await response.json) as [InstapaperAccount]
134134
return data[0];
135135
}
136136

0 commit comments

Comments
 (0)