Comments (2)
Hey, that is correct and a bug!
Rest parameters / variadic functions and calling them has been implemented / is currently supported
- https://github.com/kaleidawave/ezno/blob/main/checker/specification/specification.md#arguments-in-to-rest-parameter
- https://github.com/kaleidawave/ezno/blob/main/checker/specification/specification.md#type-of-rest-parameter
You can see the calling implementation here
ezno/checker/src/types/calling.rs
Line 1141 in 24e35b9
The issue is currently because Console
is typed incorrectly:
ezno/checker/definitions/overrides.d.ts
Lines 167 to 172 in 24e35b9
I think
console.log
was one of the first functions I added checking for and it was only a while later I added variadic functions. And thus I must have missed updating the definition
This is similar to #118 issue (which I left a comment on the status of reusing TypeScripts lib.d.ts
definition). I have opened #121 which describes how I want to implement it (although it is not quite ready / waiting on some other things).
Unsure whether I should start doing #121 manually or wait for more checking features to be implemented 🤷♂️
from ezno.
This specific issue is fixed in #135
Of course hopefully #121 should wipe out this category of built in mismatches
from ezno.
Related Issues (20)
- Is there still a way to convert from OXC parsed AST to Ezno? HOT 1
- Crates in this repository have a different versions HOT 2
- Missing `Console` methods HOT 3
- Class types and class extends
- Change way types are stored and represented + allow for more than u16::MAX types HOT 1
- Merge Ezno runtime definitions with existing TS definition files HOT 3
- Narrowing
- Interface extends and type parameters extends
- Closure TDZ HOT 1
- Nominal classes
- Bug: Unsound checking of function calls with array parameters HOT 3
- `never` type lookup - "Cannot find type never" HOT 4
- Proposal: Support `unknown`, rename `TypeId::ANY_TYPE` -> `TypeId::UNKNOWN_TYPE` HOT 1
- Parsing import meta
- Add more options for printing types
- Error for excess / extra generic arguments passed to functions
- Add fuzzers for the checker crate
- Panic when parsing let declaration with no declarations HOT 4
- Non type type pairing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ezno.