Skip to content

Commit abd3e58

Browse files
add missing return types on LazyDataFrame (#208)
some methods incorrectly had return type `any`
1 parent 5d05a19 commit abd3e58

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

polars/lazy/dataframe.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -364,11 +364,11 @@ export interface LazyDataFrame extends Serialize, GroupByOps<LazyGroupBy> {
364364
/**
365365
* @see {@link DataFrame.rename}
366366
*/
367-
rename(mapping: Record<string, string>);
367+
rename(mapping: Record<string, string>): LazyDataFrame;
368368
/**
369369
* Reverse the DataFrame.
370370
*/
371-
reverse();
371+
reverse(): LazyDataFrame;
372372
/**
373373
* @see {@link DataFrame.select}
374374
*/
@@ -461,7 +461,7 @@ export interface LazyDataFrame extends Serialize, GroupByOps<LazyGroupBy> {
461461
* Add a column at index 0 that counts the rows.
462462
* @see {@link DataFrame.withRowCount}
463463
*/
464-
withRowCount();
464+
withRowCount(): LazyDataFrame;
465465
/***
466466
*
467467
* Evaluate the query in streaming mode and write to a CSV file.
@@ -521,7 +521,7 @@ export interface LazyDataFrame extends Serialize, GroupByOps<LazyGroupBy> {
521521
sinkCSV(path: string, options?: SinkCsvOptions): void;
522522

523523
/***
524-
*
524+
*
525525
* Evaluate the query in streaming mode and write to a Parquet file.
526526
527527
.. warning::

0 commit comments

Comments
 (0)