Skip to content

Commit 3acfd00

Browse files
committed
Link to the TypeScript type narrowing issue.
See: - microsoft/TypeScript#55239 (comment) - microsoft/TypeScript#4196
1 parent ff4f4d8 commit 3acfd00

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ArqBackupPlan.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ export interface FinishedBackupActivityJSON
3535
}
3636

3737
// Note: this should be `|` rather than `&`, but this is `&` due to TypeScript
38-
// limitations.
38+
// limitations. See:
39+
//
40+
// - https://github.com/microsoft/TypeScript/issues/55239#issuecomment-1662572540
41+
// - https://github.com/microsoft/TypeScript/issues/4196
3942
//
4043
// This means that `if (backupActivityJSON.message === "Idle")` unfortunately
4144
// cannot type narrow the type of backupActivityJSON from `BackupActivityJSON`

0 commit comments

Comments
 (0)