Repository navigation
FAQ: TypeScript Support is Here! #126
Replies: 4 comments 3 replies
|
@mikhael28 I'd like to suggest a structure for our TS types:
This is what I follow on all my Typescript projects, let me know what you think. As for an example, here's a full TS repo I'm working on -
Looking forward to hearing from you! |
|
@akashshyamdev that directory structure sounds good, where we have a In general, if we are using an Interface in only one component or container - let's leave it IN the component/container. This way, newbies to the project can more easily navigate things. Not everyone is used to using the VS Code auto-complete tools like a pro. Regarding point number 4, I agree with this - but let's keep the Would you mind sending a PR in to establish the folder called |
|
@akashshyamdev how is everything going for you - you looking for work right now or already found it? I was wondering if you had a PR with anything mentioned in the previous comment? |
|
@akashshyamdev no worries, glad to hear you're busy with work! I think @vmcodes has created a types folder via PR #141 (which I assume will get merged soon), so things should be all set on this now anyway. @mikhael28 Just catching up on this thread/all the threads, but what was discussed here makes a lot of sense to me. Should I update the style section of the Contributing guide soon to reflect it? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey everyone!
Happy HacktoberFest! I've just now gone ahead and added in support for TypeScript in the ParetOS codebase! This is a great opportunity for the community to go through, and start refactoring components and really key in on tightening up the codebase. It's a great opportunity to reorganize our code, to do a better job of documenting the different data objects, and perhaps raising some flags (for example: x API field is no longer in use anywhere, should we deprecate that functionality in the API) based on that research.
Over the next few days, I will be writing up some tickets to begin refactoring certain components, utility functions and UI elements into TypeScript compatible code. A few things to note:
yarn installto make sure you install all of the 'type' npm packages.@types/nameof-librarypackage from npm. That may be necessary, but after a short while - we should have all of these libraries installed, and not get that issue.I will update this announcement with more guidelines as they pop up, based on the open-source work we will be doing!
All reactions