Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sondang
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
sondang
7y ago
You can do: if ('error' in result) { console.error(result.error); // ok: result inferred as 'Failure' } else { doThings(result.value) // ok: result inferred as 'Success<T>&#x
2.
▲
by
sondang
7y ago
I wonder what's the common approach that people use to test AWS-coupled features locally without LocalStack (or test features not supported by LS). Do you have a dedicated AWS environment for this use case, or we're not supposed t