Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 15 17:06
    chaffeqa opened #1508
  • Aug 08 16:07
    lierdakil closed #1507
  • Aug 08 16:07
    lierdakil labeled #1507
  • Aug 08 11:43
    rahamin1 opened #1507
  • Aug 07 12:07
    lierdakil labeled #1505
  • Aug 07 12:07
    lierdakil closed #1505
  • Aug 06 21:51
    TheEmrio closed #1506
  • Aug 05 14:22
    TheEmrio opened #1506
  • Jul 15 15:40
    Xapphire13 closed #1496
  • Jul 10 13:23
    akonwi opened #1505
  • Jul 10 04:44
    nelson6e65 edited #1504
  • Jul 10 04:40
    nelson6e65 opened #1504
  • Jul 08 06:40
    sshquack closed #846
  • Jun 17 16:02
    akonwi opened #1503
  • Jun 02 18:18
    tanfonto opened #1502
  • May 28 17:11
    jazzdragon opened #1501
  • Apr 29 01:12
    dyping closed #1500
  • Apr 28 06:56
    dyping edited #1500
  • Apr 28 06:54
    dyping edited #1500
  • Apr 26 11:38
    dyping opened #1500
Basarat Ali Syed
@basarat
@greatelv alternatively just one one tsconfig and use something like webpack to bundle for the frontend. Thats the approach I'd take on new projects and have taken here : https://github.com/TypeScriptBuilder/tsb/tree/master/src
Jeon, TaeKyung
@greatelv
Thanks. @basarat
you are good man
Glen
@glen-84
This message was deleted
Basarat Ali Syed
@basarat
🌹
amit handa
@amit-handa
hi, I am new to typescript. using atom-typescript to generate es6, commonjs transpiled js for nodejs (4.2.2v)
what is the best way to convert js project to typescript one ?
I have renamed the project js files to ts. I am getting following error:
cannot redeclare block-scoped variable <var-name>
thanks
btw, the plugin does ts->js successfully
amit handa
@amit-handa
atom stutters while developing with atom-typescript :(
amit handa
@amit-handa
In Atom, I type 'ctrl+]' to see declaration. what is the shortcut for returning from declaration ?
Basarat Ali Syed
@basarat

cannot redeclare block-scoped variable <var-name>

@amit-handa use file modules : https://basarat.gitbooks.io/typescript/content/docs/project/modules.html to ensure each file isolated

In Atom, I type 'ctrl+]' to see declaration. what is the shortcut for returning from declaration ?

@amit-handa Use this package : https://github.com/TypeStrong/atom-typescript/blob/master/docs/packages.md#last-cursor-position in our list of packages we love. :rose:

amit handa
@amit-handa
Thanks basarat ! Appreciate your book on typescript, its short and sweet.
amit handa
@amit-handa
@basarat , how do I navigate using this package.
how do I see the declaration of the symbol ?
I understand I can navigate back using Alt+-.
Basarat Ali Syed
@basarat

how do I see the declaration of the symbol ?

@amit-handa F12 ... also you can use the command palette to find the commands :rose:

amit handa
@amit-handa
thanks, I do F12, after that, Alt+-, it doesnt go back. I have last-cursor package installed :(
Basarat Ali Syed
@basarat
should work ... create issue with last-cursor if it doesn't :rose:
amit handa
@amit-handa
thanks
kpgarrod
@kpgarrod
I'm suddenly experiencing a strange issue
some files in my project are being emitted with 0 length
just deleting the emitted file, modifying the source and saving it doesn't help
Glen
@glen-84
@basarat I'm getting The project file contains invalid options - Unknown Option: allowSyntheticDefaultImports -- does this option have to be added to Atom TypeScript?
kpgarrod
@kpgarrod
building the project does (sometimes?)
Basarat Ali Syed
@basarat

I'm getting The project file contains invalid options - Unknown Option: allowSyntheticDefaultImports -- does this option have to be added to Atom TypeScript?

@glen-84 yes. This is because we error on unknown options as a convinience for mis-spellings . I see the issue : TypeStrong/atom-typescript#762 so will continue discussion there :rose:

building the project does (sometimes?)

@kpgarrod are you using external transpiler option?

kpgarrod
@kpgarrod
@basarat I'm not sure I know what that means, but I don't think so :smile:
kpgarrod
@kpgarrod
@basarat: I think I figured it out. I had turned on 'beautify on save' for typescript files in atom-beautify earlier in the day. That seems to have caused this problem. Do you want me to raise an issue in github?
Basarat Ali Syed
@basarat
@kpgarrod atom-beautify and atom-typescript don't play nice together ... can't really ... we work off of tsconfig ... they work off of magic < good for general purpose beautifier but not good for typescript project specific beautifier
llgcode
@llgcode
Hi is someone can tell me about new use-strict statement added automatically by atom-typescript?
@basarat Does atom-typescript interfere with the newline characters used by typescript? I have "newLine": "LF" in my tsconfig file, but it's writing the files with CRLF. It seems to work fine when using tsc directly.
llgcode
@llgcode
@glen-84 thanks. So I've changed the default typescript used (last github version) with the one I have installed with npm to keep compatibility for now waiting the 1.8 to be released
Glen
@glen-84
You're welcome.
Dominic Böttger
@DominicBoettger
Hello
Can i limit the line length of the compiled javascript?
Gerasimos (Makis) Maropoulos
@removed~kataras
This message was deleted
http://postimg.org/image/s15zgxzf3/ Does someone else has this problem at .tsx files ? ( look at the right side of the image)
Gerasimos (Makis) Maropoulos
@removed~kataras
@/all
Basarat Ali Syed
@basarat
@DominicBoettger No. Just limit the length of the ts ? 🌹
@kataras I've seen the minimal look that way. I uninstalled it for myself :). I haven't seen '/div' artifacts.
Gerasimos (Makis) Maropoulos
@removed~kataras
@basarat it's happening for </span also, If I change the language editor to 'Typescript' ( from Typescript (TSX)) it does disappear but no code hint for html inside render()
I'm using Windows 7, I had the same problem with Windows 10 and Ubuntu 15.10 too
I though it will be fixed but no..
Why I have this problem ?
It's the only reason I had to use sublime but I like Atom most..
Marcus
@mjohnsonengr
blob
Aware of this syntax highlighting issue?
Couldn't find an issue, but I'll be surprised if I'm the first one that's noticed it