You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
// fp-ts is the npm module, version 0.2.7import{array}from'fp-ts';consthasTweetsAfterRangeEnd=(tweets: {}[])=>(array.last(tweets).map(()=>true).getOrElse(()=>false));exportconstisLastPage=()=>(tweets: {}[])=>{return!hasTweetsAfterRangeEnd(tweets);};
❯tslint--projecttsconfig.json--type-check./src/publication.tsERROR: src/publication.ts[10,13]: Thistype is notallowedintheoperandforthe'!'operatorbecauseit is alwaystruthy.Onlybooleansareallowed.
Expected behavior
No errors.
Notes
If I remove no-unused-variable, the error disappears.
The text was updated successfully, but these errors were encountered:
Bug Report
TypeScript code being linted
with
tslint.json
configuration:and
tsconfig.json
:Actual behavior
Expected behavior
No errors.
Notes
If I remove
no-unused-variable
, the error disappears.The text was updated successfully, but these errors were encountered: