{"id":13727220,"url":"https://github.com/imteekay/thinking-in-types","last_synced_at":"2025-04-28T11:49:20.034Z","repository":{"id":91436047,"uuid":"274668325","full_name":"imteekay/thinking-in-types","owner":"imteekay","description":"TypeScript examples to build a mental model for types","archived":false,"fork":false,"pushed_at":"2022-03-12T00:13:13.000Z","size":42,"stargazers_count":64,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T18:46:15.453Z","etag":null,"topics":["javascript","nodejs","types","typescript"],"latest_commit_sha":null,"homepage":"https://www.iamtk.co/a-mental-model-to-think-in-typescript","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imteekay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-06-24T12:54:18.000Z","updated_at":"2024-03-24T08:29:11.000Z","dependencies_parsed_at":"2024-01-06T07:56:56.608Z","dependency_job_id":"f1cf6b2c-c83d-46c1-aa74-0e27a01dd86a","html_url":"https://github.com/imteekay/thinking-in-types","commit_stats":null,"previous_names":["leandrotk/thinking-in-types"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imteekay%2Fthinking-in-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imteekay%2Fthinking-in-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imteekay%2Fthinking-in-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imteekay%2Fthinking-in-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imteekay","download_url":"https://codeload.github.com/imteekay/thinking-in-types/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233553762,"owners_count":18693317,"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":["javascript","nodejs","types","typescript"],"created_at":"2024-08-03T01:03:44.751Z","updated_at":"2025-01-12T01:10:56.124Z","avatar_url":"https://github.com/imteekay.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Thinking in Types\n\nThis is the source code for the article [A Mental Model to think in Typescript](https://leandrotk.github.io/2020/07/a-mental-model-to-think-in-typescript).\n\nFollow these examples to build a mental model for types:\n\n- [001: JavaScript Types](src/001-javascript-types.ts)\n- [002: Simple Sum](src/002-simple-sum.ts)\n- [003: Primitive](src/003-primitive.ts)\n- [004: Sum all prices](src/004-sum-all-prices.ts)\n- [005: Structural vs Nominal Typing](src/005-structural-vs-nominal-typying.ts)\n- [006: Runtime vs Compile time](src/006-runtime-vs-compile-time.ts)\n- [007: Value space vs Type space](src/007-value-space-vs-type-space.ts)\n- [008: Constraints and Type narrowing](src/008-constraints-and-type-narrowing.ts)\n- [009: Immutability in compile time](src/009-immutability-in-compile-time.ts)\n- [010: Semantics and Readability](src/010-semantics-and-readability.ts)\n- [011: Enums](src/011-enums.tsx)\n- [012: Optional Property](src/012-optional-properties.ts)\n- [013: API Response Optional Property](src/013-api-response-optional-property.ts)\n- [014: Union Type](src/014-union-type.ts)\n- [015: Intersection Type](src/015-intersection-type.ts)\n- [016: Tooling](src/016-tooling.ts)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimteekay%2Fthinking-in-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimteekay%2Fthinking-in-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimteekay%2Fthinking-in-types/lists"}