{"id":20698800,"url":"https://github.com/rwson/typescript","last_synced_at":"2026-04-27T03:32:32.362Z","repository":{"id":87105670,"uuid":"53289954","full_name":"rwson/TypeScript","owner":"rwson","description":"TypeScript学习笔记","archived":false,"fork":false,"pushed_at":"2016-03-07T02:43:51.000Z","size":193,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T15:11:14.134Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/rwson.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":"2016-03-07T02:33:06.000Z","updated_at":"2017-07-06T06:59:38.000Z","dependencies_parsed_at":"2023-07-04T22:48:30.669Z","dependency_job_id":null,"html_url":"https://github.com/rwson/TypeScript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rwson/TypeScript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FTypeScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FTypeScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FTypeScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FTypeScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwson","download_url":"https://codeload.github.com/rwson/TypeScript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwson%2FTypeScript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32321480,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-17T00:26:59.405Z","updated_at":"2026-04-27T03:32:32.345Z","avatar_url":"https://github.com/rwson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#TypeScipt学习笔记\n\n首先需要安装ts环境,运行下面的语句\n    \n    npm install -g typescript\n    \n1、编辑器环境配置,如果在WebStorm中开发,可以打开Setting -\u003e Tools -\u003e File Watchers -\u003e Add,添加一个TypeScript Watcher(配置完见后面的图1),然后每次新建一个TypeScript文件的时候,都会提示是否启用file watcher;在Sublime中也可以通过安装插件的方式来编译写好的ts文件。\n\n2、也可以在TypeScript用命令行切换到该目录下,比如当前目录下有个名为hello.ts的文件,就可以运行\n\n    tsc hello.ts\n    \n来编译该文件,在相同目录下输出hello.js和hello.js.map两个文件\n\n![WebStorm TypeScript编译器配置](https://github.com/rwson/TypeScript/blob/master/config.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwson%2Ftypescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwson%2Ftypescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwson%2Ftypescript/lists"}