Skip to content

Commit

Permalink
Typescript: use method did not explicity set return types
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Aug 1, 2024
1 parent f98cbb2 commit d336239
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2759,13 +2759,13 @@ export interface DataTablesStatic {
*
* @param type The library needed
*/
use(type: 'lib' | 'win' | 'datetime' | 'luxon' | 'moment');
use(type: 'lib' | 'win' | 'datetime' | 'luxon' | 'moment'): any;

/**
* Set the libraries that DataTables uses, or the global objects, with automatic
* detection of what the library is. Used for module loading environments.
*/
use(library: any);
use(library: any): void;

/**
* Set the libraries that DataTables uses, or the global objects, explicity staing
Expand All @@ -2774,7 +2774,7 @@ export interface DataTablesStatic {
* @param type Indicate the library that is being loaded.
* @param library The library (e.g. Moment or Luxon)
*/
use(type: 'lib' | 'win' | 'datetime' | 'luxon' | 'moment', library: any);
use(type: 'lib' | 'win' | 'datetime' | 'luxon' | 'moment', library: any): void;

/**
* Utils
Expand Down

0 comments on commit d336239

Please sign in to comment.