1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

typing cleanup

This commit is contained in:
checktheroads
2021-01-10 01:15:13 -07:00
parent 4137286ca4
commit 090626f952
10 changed files with 16 additions and 17 deletions

View File

@@ -31,6 +31,7 @@ type MDProps = {
node: Dict;
};
/* eslint @typescript-eslint/no-explicit-any: off */
function hasNode<C>(p: any): p is C & MDProps {
return 'node' in p;
}