From d336239de07407a578593d111db9723d08122aa7 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 1 Aug 2024 08:25:38 +0000 Subject: [PATCH] Typescript: `use` method did not explicity set return types https://datatables.net/forums/discussion/79516/ --- types/types.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/types.d.ts b/types/types.d.ts index 67573033..80fb1600 100644 --- a/types/types.d.ts +++ b/types/types.d.ts @@ -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 @@ -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