2025-03
1541Daily Snippets2025-03-012025-08-24
2025/03/23
2025/03/16
2025/03/08
incorrect merge two union types using
&results innever.merging types with conflicting property results in
never, whereas merging such conflicts in an interface triggers a compile-time error.”1
2
3type A = { id: string };
type B = { id: number };
type C = A & B; // { id: never }changes in dates during
rebase. git tracks two date timestampsAuthor DateandCommitter Date.git rebasecan modifies commit history, which affectscommitterDate. the default behavior preservesauthorDate, and updatescommitterDateto therebasetimeauthorDate(Creation Date) – When the commit was created.committerDate(Last Modified Date) – When the commit was last modified.git rebase --ignore-dateensures bothauthorDateandcommitterDateremain unchanged
TS的
enum编译为IIFE(立即执行函数)