sindresorhus

node-defaults

Easily handle defaults for your options

by sindresorhus

JavaScript

JavaScript67.6%
TypeScript32.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
dylanarmstrong

When determining return type, use the default object type if it's defined and overriding an undefined type. Fixes https://github.com/sindresorhus/node-defaults/issues/5

dylanarmstrong · 2y ago
dylanarmstrong

Hi, It's not currently possible to override types like so: This will throw this error: Current workaround is to cast with , but I feel that the typing for this method should support this conversion.

dylanarmstrong · 3y ago
Structured data for AI agents

Repository: sindresorhus/node-defaults. Description: Easily handle defaults for your options Stars: 76, Forks: 7. Primary language: JavaScript. Languages: JavaScript (67.6%), TypeScript (32.4%). License: MIT. Latest release: v3.0.0 (3y ago). Open PRs: 0, open issues: 0. Last activity: 3mo ago. Community health: 85%. Top contributors: sindresorhus, tmpvar, dylanarmstrong, andineck.