{"id":27268795,"url":"https://github.com/shevchenkool/uvod-do-typescript","last_synced_at":"2025-04-11T11:32:35.391Z","repository":{"id":275109624,"uuid":"925080129","full_name":"ShevchenkoOl/uvod-do-TypeScript","owner":"ShevchenkoOl","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-07T14:21:55.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T15:26:39.283Z","etag":null,"topics":["typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShevchenkoOl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-31T07:25:21.000Z","updated_at":"2025-02-07T14:21:58.000Z","dependencies_parsed_at":"2025-01-31T09:23:52.177Z","dependency_job_id":"4adfdde1-1123-4477-8990-b3fe4c87be8f","html_url":"https://github.com/ShevchenkoOl/uvod-do-TypeScript","commit_stats":null,"previous_names":["shevchenkool/uvod-do-typescript"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShevchenkoOl%2Fuvod-do-TypeScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShevchenkoOl%2Fuvod-do-TypeScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShevchenkoOl%2Fuvod-do-TypeScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShevchenkoOl%2Fuvod-do-TypeScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShevchenkoOl","download_url":"https://codeload.github.com/ShevchenkoOl/uvod-do-TypeScript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248384115,"owners_count":21094674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["typescript"],"created_at":"2025-04-11T11:32:34.895Z","updated_at":"2025-04-11T11:32:35.380Z","avatar_url":"https://github.com/ShevchenkoOl.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Installing and configuring the development environment:\n1. we will use [Node.js](https://nodejs.org/en/) to install and configure the development environment;\n2. install __TypeScript__ using __Node Package Manager (npm)__, which is automatically installed with Node.js: ``` npm install -g typescript ```.\nThis command installs TypeScript globally on your computer, allowing you to use it in any project;\n3. after installation, you can check the TypeScript version and its functionality using: ``` tsc -v ```;\n4. to work with TypeScript, I recommend using [Visual Studio Code (VS Code)](https://code.visualstudio.com/).\n\n__Now we have everything we need to get started with TypeScript! You can create a new TypeScript file with the .ts extension and start writing code.__\n\n```test.ts```\n```html\nfunction add(num1: number, num2: number) {\n  return num1 + num2;\n}\nadd(1, 1);\n```\nLet's \u003cabbr title=\"converting TS format to regular JS\"\u003ecompile\u003c/abbr\u003e it in the console using the command:\n\n```tsc test.ts```.\n\nWe have a __js__ file next to the __ts__ file:\n\n![screen folders](./folders.png)\n\nLet's open the __js__ file:\n\n![file test.js](./open_JS.png)\n\nthe contents of our __ts__ file were overwritten by our __js__ format.\n\nWe can also monitor file changes in real time by running the command:\n```tsc test.ts -w``` or ```tsc test.ts -watch```.\nIn order not to stop ```npm start``` execution every time, you can open ```tsc -w``` in a separate console.\n__Every time you save the file, it will be recompiled, if there is an error, you will immediately see it in the console.__\n### Author\nThis repository was created and maintained by [Oleksii Shevchenko](https://shevchenkool.github.io/portfolio/). Questions, suggestions and feedback can be directed to [email](uzlabini@gmail.com) or [linkedin profile](linkedin.com/in/oleksii-shevchenko-535ab61b8).\nIf you have any questions or suggestions, feel free to create an [issue](https://github.com/ShevchenkoOl/phonebook/issues) or submit a [pull request](https://github.com/ShevchenkoOl/phonebook/pulls).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshevchenkool%2Fuvod-do-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshevchenkool%2Fuvod-do-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshevchenkool%2Fuvod-do-typescript/lists"}