marius-townhouse

marius-townhouse

@marius-townhouse

GitHub
50 Skills
300 Total Stars
February 2026 Joined

Public Skills

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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo ago

no-type-in-docs

by marius-townhouse

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

Comments 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo 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 6 8mo ago