Giter Site home page Giter Site logo

Support typescript about roadhog HOT 6 CLOSED

sorrycc avatar sorrycc commented on September 26, 2024
Support typescript

from roadhog.

Comments (6)

sandwich99 avatar sandwich99 commented on September 26, 2024 4

版本 0.6-beta2 引入入口文件 index.ts 报错, 代码:

import dva from 'dva';

const app = dva();

app.start('#root');

image

from roadhog.

chengs avatar chengs commented on September 26, 2024

这个现在有么

from roadhog.

sorrycc avatar sorrycc commented on September 26, 2024

没有,放 0.5.0 里做吧,欢迎 PR 。

from roadhog.

sorrycc avatar sorrycc commented on September 26, 2024

优先级不高,往后面放。

from roadhog.

pvtyuan avatar pvtyuan commented on September 26, 2024

能在0.6中实现吗?antd和dva都支持typescript了,有这个就更方便了。我尝试改了下webpack配置,但没成功

from roadhog.

mrcwl avatar mrcwl commented on September 26, 2024

配置以后似乎无效。
test.tsx文件中:
export const num = 123;
index.js中
import { num } from './test.tsx';
num是空值

from roadhog.

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.