无法使用 assert 作为 type guard https://github.com/Microsoft/TypeScript/issues/8655 The TypeScript Tax 中文翻译