UNPKG
newick
Version:
latest (3.0.1)
3.0.1
3.0.0
3.0.0-rc2
3.0.0-rc1
2.0.0
1.4.0
1.3.3
1.3.2
1.3.1
1.2.3
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
A Newick tree parser
github.com/octav47/newick.js
octav47/newick.js
newick
/
dist
/
esm
/
tools
/
getRoot.d.ts
8 lines
(7 loc)
•
257 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
NewickNode
}
from
'../types'
;
/** * Returns the name of the root node of a Newick tree *
@param
tree
- Newick string or tree object *
@returns
Root node name or null */
export
declare
function
getRoot
(
tree
:
string
|
NewickNode
):
string
|
null
;