# 03 · defaults **演示**:`Box` 省略实参时落到默认值;`Mapper` 的第二个默认值可以引用第一个。 **运行**:在 `tutorials/typescript` 下执行 `npm run build`,再执行 `npm run serve`,打开 `http://localhost:8080/examples/06-generics/03-defaults/`;开 Console。 **预期控制台输出**: ```text text 42 #7 ``` **类型检查**:`node node_modules/typescript/bin/tsc -p examples/06-generics/03-defaults/tsconfig.types.json` **注意**:函数上的默认类型参数只在推断不出时生效;有实参时仍以推断为准。