@@ -341,26 +341,26 @@ export interface SankeyLayout<Data, N extends SankeyExtraProperties, L extends S
341341 /**
342342 * Returns the node comparison function which defaults to undefined.
343343 */
344- nodeSort ( ) : ( ( a : SankeyNode < N , L > , b : SankeyNode < N , L > ) => number ) | undefined ;
344+ nodeSort ( ) : ( ( a : SankeyNode < N , L > , b : SankeyNode < N , L > ) => number ) | undefined | null ;
345345
346346 /**
347347 * Set the node comparison function and return this Sankey layout generator.
348348 *
349- * @param compare Node comparison function.
349+ * @param compare Node comparison function. If `null`, the order is fixed by the input.
350350 */
351- nodeSort ( compare : ( a : SankeyNode < N , L > , b : SankeyNode < N , L > ) => number | undefined | null ) : this;
351+ nodeSort ( compare : ( ( a : SankeyNode < N , L > , b : SankeyNode < N , L > ) => number ) | undefined | null ) : this;
352352
353353 /**
354354 * Returns the link comparison function which defaults to undefined.
355355 */
356- linkSort ( ) : ( ( a : SankeyLink < N , L > , b : SankeyLink < N , L > ) => number ) | undefined ;
356+ linkSort ( ) : ( ( a : SankeyLink < N , L > , b : SankeyLink < N , L > ) => number ) | undefined | null ;
357357
358358 /**
359359 * Set the link comparison function and return this Sankey layout generator.
360360 *
361- * @param compare Link comparison function.
361+ * @param compare Link comparison function. If `null`, the order is fixed by the input.
362362 */
363- linkSort ( compare : ( a : SankeyLink < N , L > , b : SankeyLink < N , L > ) => number | undefined | null ) : this;
363+ linkSort ( compare : ( ( a : SankeyLink < N , L > , b : SankeyLink < N , L > ) => number ) | undefined | null ) : this;
364364}
365365
366366/**
0 commit comments