mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-30 17:04:20 +08:00
Certain methods always return a specific Entry type. Define more specific callbacks so that typescript can infer when an Entry is a DirectoryEntry or FileEntry, removing the need to explicitly state the type in certain callbacks. Existing code using this definition should not be broken as a result of this change. Signed-off-by: David Li <jiawei.davidli@gmail.com>