Comments (4)
why are there 3 of us assigned to this?
from lodestar.
I can take this if yall want.
Typescript doesn't exist at runtime, so unless we want to separately write a test for each type by hand (we don't), you can't just do something like:
// file 1
export interface a {}
export interface b {}
export interface c {}
// file 2
import interfaces from "./file1"
for (let i in interfaces) { // error here, interfaces don't actually exist!
...
}
Unfortunately, a real solution is a little hairy (we need to manually parse our types files to suss out the interface definitions) but I'm prototyping something now.
from lodestar.
@ansermino No idea how/why i did that.
from lodestar.
I was playing around with this @wemeetagain https://stackoverflow.com/questions/14425568/interface-type-check-with-typescript
from lodestar.
Related Issues (20)
- Support eventstream example (bls_to_execution_change) from recent beacon API test suite HOT 5
- Improve API schema validation for tests
- Support eventstream example (light_client_*_update) from recent beacon API test suite
- Eventstream API fallback support
- Investigate `--builder.urls` usage HOT 1
- Add metric utility function `withTimer`
- Support blob download API example from recent beacon API test suite
- Investigate oneOf usage in API tests HOT 1
- computeNewStateRoot performance issue at slot 0 of epoch HOT 2
- Why does this function throw an empty string (`toThrow("")`)? Might be worth investigating
- Eventstream API light client events spec compatibility HOT 1
- jobItemWorkReq performance issue HOT 1
- BlockV3 API does not return `Eth-Consensus-Version` HOT 4
- Enable strict schema checks once possible
- Use the worker loading from `src` directory
- Add proposer_slashing and attester_slashing to SSE
- ERC-55 mixed-case checksum address encoding for execution address
- publishBlockV2: latency streaming body from vc to bn due to big payload HOT 4
- Refactor blockV3 to builder_boost_factor spec
- Improve processRewardsAndPenalties HOT 4
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 lodestar.