marius-townhouse

marius-townhouse

@marius-townhouse

GitHub
50 Skills
100 Total Stars
February 2026 Joined

Public Skills

allowjs-mixing

by marius-townhouse

Use when migrating JavaScript to TypeScript. Use when gradually adopting TypeScript. Use when working with mixed codebases. Use when converting large projects. Use when teams are learning TypeScript.

Database 2 4mo ago

avoid-inferable-annotations

by marius-townhouse

Use when writing type annotations on variables. Use when TypeScript can infer the type. Use when code feels cluttered with types.

Comments 2 4mo ago

async-over-callbacks

by marius-townhouse

Use when writing asynchronous code. Use when tempted to use callbacks. Use when composing multiple async operations.

Processing 2 4mo ago

accurate-environment-model

by marius-townhouse

Use when defining global types. Use when augmenting window. Use when typing environment variables. Use when working with build-time constants. Use when configuring type definitions.

Code Gen 2 4mo ago

avoid-repeated-params

by marius-townhouse

Use when functions have multiple parameters of same type. Use when parameter order is easy to confuse. Use when designing function signatures.

i18n 2 4mo ago

avoid-numeric-index

by marius-townhouse

Use when defining array-like types. Use when tempted to use number as index type. Use when understanding array keys.

Code Gen 2 4mo ago

avoid-anecdotal-types

by marius-townhouse

Use when creating types from example data. Use when types don't match all cases. Use when API responses vary.

API Dev 2 4mo ago

branded-types

by marius-townhouse

Use when primitive types need semantic distinction. Use when string or number types have different meanings. Use when you need nominal typing.

Debugging 2 4mo ago

code-gen-independent

by marius-townhouse

Use when confused about types at runtime. Use when trying to use instanceof with interfaces. Use when type errors don't prevent JavaScript output.

Code Review 2 4mo ago

compiler-performance

by marius-townhouse

Use when build times are slow. Use when optimizing TypeScript projects. Use when configuring project references. Use when dealing with large codebases. Use when improving IDE responsiveness.

Performance 2 4mo ago

avoid-unnecessary-type-params

by marius-townhouse

Use when writing generic functions or types. Use when reviewing type signatures. Use when a type parameter only appears once. Use when tempted to add generics for "flexibility".

Debugging 2 4mo ago

consistent-aliases

by marius-townhouse

Use when narrowing doesn't work as expected. Use when using variables for object properties. Use when refinements are lost.

Code Gen 2 4mo ago

domain-language-types

by marius-townhouse

Use when naming types. Use when types describe structure not meaning. Use when domain experts won't understand type names.

Processing 2 4mo ago

control-union-distribution

by marius-townhouse

Use when conditional types behave unexpectedly with unions. Use when boolean or never types cause surprises. Use when needing to prevent distribution over unions. Use when recursive generic types don't distribute.

Code Gen 2 4mo ago

distinct-special-values

by marius-townhouse

Use when tempted to use -1 or "" as special values. Use when indexOf returns -1. Use when special cases need representation.

Processing 2 4mo ago

currying-inference

by marius-townhouse

Use when generic types aren't inferred. Use when builder patterns need better types. Use when creating new inference sites.

Processing 2 4mo ago

limit-any-type

by marius-townhouse

Use when tempted to use any type. Use when getting type errors that seem hard to fix. Use when migrating JavaScript to TypeScript.

Processing 2 4mo ago

excess-property-checking

by marius-townhouse

Use when assigning object literals to typed variables. Use when confused by "unknown property" errors. Use when extra properties are flagged on object literals but not variables.

Code Review 2 4mo ago

index-signature-alternatives

by marius-townhouse

Use when defining object types with dynamic keys. Use when tempted to use index signatures. Use when parsing CSV or JSON data.

Code Gen 2 4mo ago

generics-as-functions

by marius-townhouse

Use when defining generic types or functions. Use when constraining type parameters. Use when writing type-level code. Use when documenting generic types.

Code Gen 2 4mo ago

narrow-any-scope

by marius-townhouse

Use when any is unavoidable. Use when working with untyped libraries. Use when silencing specific type errors.

Processing 2 4mo ago

avoid-wrapper-types

by marius-townhouse

Use when typing primitives. Use when tempted to use String, Number, Boolean. Use when wrapper types appear in errors.

Code Gen 2 4mo ago

editor-interrogation

by marius-townhouse

Use when debugging type inference. Use when types behave unexpectedly. Use when learning unfamiliar code.

Code Review 2 4mo ago

limit-optional-properties

by marius-townhouse

Use when adding optional properties. Use when types have many optional fields. Use when considering required vs optional.

Code Gen 2 4mo ago

export-public-types

by marius-townhouse

Use when publishing libraries. Use when types appear in public APIs. Use when users need to reference types. Use when building reusable components. Use when designing library interfaces.

API Dev 2 4mo ago

codegen-over-complex-types

by marius-townhouse

Use when types become extremely complex. Use when types mirror external schemas. Use when maintaining type-to-schema mappings. Use when types require extensive type-level logic. Use when types drift from data sources.

API Dev 2 4mo ago

different-variables-types

by marius-townhouse

Use when tempted to reuse variables. Use when variable changes type. Use when using union types for multiple purposes.

Code Gen 2 4mo ago

iterate-objects-safely

by marius-townhouse

Use when iterating over object keys and values. Use when for...in loops produce type errors. Use when Object.entries returns any types. Use when dealing with prototype pollution concerns. Use when considering Map vs object.

Processing 2 4mo ago

dry-types

by marius-townhouse

Use when duplicating type definitions. Use when interfaces share common fields. Use when types can be derived from other types.

Code Gen 2 4mo ago

context-type-inference

by marius-townhouse

Use when extracting values causes type errors. Use when callback types are wrong. Use when const assertions are needed.

Debugging 2 4mo ago

callback-this-type

by marius-townhouse

Use when callbacks use this. Use when API provides this context. Use when typing event handlers. Use when library sets this in callbacks. Use when documenting callback context.

API Dev 2 4mo ago

mirror-types

by marius-townhouse

Use when depending on external types. Use when avoiding tight coupling. Use when external types might change. Use when building adapters. Use when types are only used internally.

Email 2 4mo ago

exclusive-or-properties

by marius-townhouse

Use when exactly one of several properties should be present. Use when modeling mutually exclusive options. Use when building component props with alternative configurations. Use when designing API parameters that have variants.

Debugging 2 4mo ago

no-null-in-aliases

by marius-townhouse

Use when defining type aliases. Use when null/undefined appears in type definitions. Use when types are confusing.

API Dev 2 4mo ago

dom-hierarchy

by marius-townhouse

Use when working with DOM APIs. Use when typing element references. Use when creating DOM utilities. Use when handling events. Use when manipulating the DOM.

Debugging 2 4mo ago

conditional-types-over-overloads

by marius-townhouse

Use when typing functions with multiple return types. Use when function behavior depends on input type. Use when dealing with union type inputs. Use when considering function overloads.

Processing 2 4mo ago

hide-unsafe-assertions

by marius-townhouse

Use when type assertions are necessary. Use when function implementations need any. Use when hiding unsafe code.

API Dev 2 4mo ago

create-objects-all-at-once

by marius-townhouse

Use when building objects incrementally. Use when adding properties after creation. Use when TypeScript errors on dynamic object construction.

Code Gen 2 4mo ago

module-augmentation

by marius-townhouse

Use when extending third-party types. Use when adding properties to existing interfaces. Use when plugins extend core types. Use when declaration merging is needed. Use when augmenting global types.

Refactoring 2 4mo ago

function-type-expressions

by marius-townhouse

Use when writing multiple functions with same signature. Use when implementing callbacks. Use when matching existing function types.

Code Gen 2 4mo ago

no-type-in-docs

by marius-townhouse

Use when writing comments about types. Use when documenting function parameters. Use when naming variables.

Comments 2 4mo ago

liberal-accept-strict-return

by marius-townhouse

Use when designing function signatures. Use when creating APIs. Use when parameters have optional fields but return types feel too broad.

Processing 2 4mo ago

module-by-module-migration

by marius-townhouse

Use when migrating large codebases. Use when converting JavaScript to TypeScript. Use when managing dependencies. Use when planning migration order. Use when teams are adopting TypeScript.

API Dev 2 4mo ago

ecmascript-over-typescript-features

by marius-townhouse

Use when choosing between TypeScript and ECMAScript features. Use when writing portable code. Use when considering enum or namespace. Use when targeting multiple JavaScript environments. Use when writing library code.

Code Gen 2 4mo ago

evolving-types

by marius-townhouse

Use when types change as code executes. Use when arrays are built incrementally. Use when working with any[] that narrows.

Comments 2 4mo ago

functional-constructs-types

by marius-townhouse

Use when building arrays in loops. Use when types don't flow through code. Use when considering map/filter/reduce.

Processing 2 4mo ago

noimplicitany-completion

by marius-townhouse

Use when finishing TypeScript migration. Use when enabling strict mode. Use when finalizing tsconfig. Use when ensuring type safety. Use when completing adoption.

Processing 2 4mo ago

imprecise-over-inaccurate

by marius-townhouse

Use when types become too complex. Use when precision causes false positives. Use when accuracy is uncertain.

Debugging 2 4mo ago

exhaustiveness-checking

by marius-townhouse

Use when handling tagged unions. Use when adding new cases to discriminated unions. Use when switch statements must cover all cases.

Code Gen 2 4mo ago

precise-any-variants

by marius-townhouse

Use when forced to use any. Use when any is too broad. Use when function types need any.

API Dev 2 4mo ago