mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
fix for #10271 jstree
fix for #10271 jstree - get_path params not marked to be optional
This commit is contained in:
@@ -109,3 +109,8 @@ var tree = $('a').jstree();
|
||||
tree.move_node('a', 'b', 0, (node: any, new_par: any, pos: any) => { }, true, true);
|
||||
tree.copy_node('a', 'b', 0, (node: any, new_par: any, pos: any) => { }, true, true);
|
||||
|
||||
// #10271 jstree - get_path params not marked to be optional
|
||||
tree.get_path('nodeId');
|
||||
tree.get_path('nodeId', '/');
|
||||
tree.get_path('nodeId', '/', true);
|
||||
|
||||
|
||||
2
jstree/jstree.d.ts
vendored
2
jstree/jstree.d.ts
vendored
@@ -830,7 +830,7 @@ interface JSTree extends JQuery {
|
||||
* @param {Boolean} ids if set to true build the path using ID, otherwise node text is used
|
||||
* @return {mixed}
|
||||
*/
|
||||
get_path: (obj: any, glue: string, ids: boolean) => any;
|
||||
get_path: (obj: any, glue?: string, ids?: boolean) => any;
|
||||
|
||||
/**
|
||||
* get the next visible node that is below the `obj` node. If `strict` is set to `true` only sibling nodes are returned.
|
||||
|
||||
Reference in New Issue
Block a user