Giter VIP home page Giter VIP logo

Comments (4)

ansermino avatar ansermino commented on September 18, 2024

why are there 3 of us assigned to this?

from lodestar.

wemeetagain avatar wemeetagain commented on September 18, 2024

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.

GregTheGreek avatar GregTheGreek commented on September 18, 2024

@ansermino No idea how/why i did that.

from lodestar.

GregTheGreek avatar GregTheGreek commented on September 18, 2024

I was playing around with this @wemeetagain https://stackoverflow.com/questions/14425568/interface-type-check-with-typescript

from lodestar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.