Typescript: Playground feature request: import stuff from @types

Created on 23 May 2017  路  4Comments  路  Source: microsoft/TypeScript

It would be really useful if the Playground could import modules from published typings, simplest solution I can think of would be to expose everything from @types, for example:

import {Component} from "react";

Currently that just gives the error Cannot find module 'react'

Docs

Most helpful comment

We also need JSX support.

All 4 comments

This would be so sweet. @DanielRosenwasser maybe a checkout of DT on the webserver + some server-side magic could make this happen?

We also need JSX support.

We also need JSX support.

Completely agree! I think a lot of people don't realize how brilliantly React and TypeScript play together. An example in the playground wouldn't hurt. :)

Would love to have this and of course I'd like to import my own stuff, why limit to @types. I'm sure if you have one we can have our own types as well?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbondc picture jbondc  路  3Comments

CyrusNajmabadi picture CyrusNajmabadi  路  3Comments

seanzer picture seanzer  路  3Comments

manekinekko picture manekinekko  路  3Comments

Antony-Jones picture Antony-Jones  路  3Comments