{"id":15906201,"url":"https://github.com/softchris/ts-snippets","last_synced_at":"2026-03-18T17:12:51.586Z","repository":{"id":45491195,"uuid":"159086076","full_name":"softchris/ts-snippets","owner":"softchris","description":"snippet for typescript meant to be installed on vscode","archived":false,"fork":false,"pushed_at":"2021-12-10T18:01:47.000Z","size":8,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-08T13:14:20.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/softchris.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-25T23:53:39.000Z","updated_at":"2020-07-07T13:27:35.000Z","dependencies_parsed_at":"2022-07-18T23:47:28.572Z","dependency_job_id":null,"html_url":"https://github.com/softchris/ts-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fts-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fts-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fts-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fts-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softchris","download_url":"https://codeload.github.com/softchris/ts-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246905830,"owners_count":20852818,"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":[],"created_at":"2024-10-06T13:21:43.378Z","updated_at":"2026-01-16T00:54:11.295Z","avatar_url":"https://github.com/softchris.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ts-snippets README\n\nThis extension will provide you with the most common language constructs for TypeScript and hopefully make you more productive.\n\n## Features\n\n- `ts-class`, creates a class including a constructor with\n- `ts-class-inherit`, creates a class `Shape` and a class `Movable`. `Movable` inherits from `Shape`\n- `ts-class-constructor`, creates the constructor part, you fill in the parameter names, just tab between\n- `ts-class-getter`, creates a getter for a property, it also creates the backing field\n- `ts-class-setter`, creates a setter for a property, it also creates the backing field\n- `ts-class-setter-getter`, create a setter and a getter and the backing field\n- `ts-int`, creates an interface,\n- `ts-int-impl`, creates an interface and class that implements the interface\n- `ts-templ`, creates a template string example\n- `ts-tuple`, creates a tuple example\n- `ts-enum`, creates an enum example\n- `ts-func`, creates a function signature as a type and assigns a function to it\n- `ts-func-arrow`, creates a function signature as a type and assigns an `arrow` function to it\n- `ts-union`, creates a union type and an example using it\n- `ts-intersect`, creates an intersection type and a mixin function that extends your type\n- `ts-decorator`, creates a decorator example\n  with this one you want to create a `tsconfig.json` with the following content:\n\n```json\n{\n  \"compilerOptions\": {\n      \"target\": \"ES5\",\n      \"experimentalDecorators\": true,\n      \"outFile\": \"app.js\"\n  }\n}\n```\n\nand then compile it with `tsc` and serve up in either browser or terminal\n\n## Release Notes\n\nLet me know what features you want either on [Issues](https://github.com/softchris/ts-snippets/issues) or Twitter [Chris Noring - Twitter](https://twitter.com/chris_noring)\n\n### 1.1.0\n\nAdded snippets for `constructor` and getters and setters\n\n### 1.0.0\n\nchanged name to `TypeScript Snippets`. It's also pretty much feature complete.\n\n### 0.0.5\n\nadded repository and icon\n\n### 0.0.4\n\nminor corrections\n\n### 0.0.3\n\nAdding union type, intersection type and decorator\n\n### 0.0.2\n\nAdding a bunch of Typescript constructs to make this extension usable\n\n### 0.0.1\n\nInitial release of of our extension. This gave us the `ts-class` command.\n\n**Enjoy**\n\nChris Noring\n[@chris_noring](https://twitter.com/chris_noring)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftchris%2Fts-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftchris%2Fts-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftchris%2Fts-snippets/lists"}