HomePhabricator

[faucet] Help typescript to infer the type of an empty array

Description

[faucet] Help typescript to infer the type of an empty array

Summary: In the config file the originWhitelist array is documented as possibly empty. This means that typescript has to infer the type from [] which causes a compilation failure.

Test Plan: Empty the array and run npm run build.

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

Subscribers: bytesofman

Differential Revision: https://reviews.bitcoinabc.org/D16877

Details

Provenance
FabienAuthored on Oct 9 2024, 19:02
FabienPushed on Oct 10 2024, 06:50
Reviewer
Restricted Project
Differential Revision
D16877: [faucet] Help typescript to infer the type of an empty array
Parents
rABC36b7920c9271: [avalanche] Add test case of vote status for manually added stake winner
Branches
Unknown
Tags
Unknown