From c3d8ef39391c08c8466ce7ffae1c55f6ac4b3f64 Mon Sep 17 00:00:00 2001 From: pingcrosby Date: Mon, 8 Jun 2015 13:30:55 +0100 Subject: [PATCH] Set LanuageSettings to optional Language info fields marked as optional to allow constructs as var table = $('#example').DataTable({ processing: true, serverSide: true, pagingType: "full_numbers", lengthMenu: [5, 10, 15], language: { paginate: { first: "Fsairst", last: "Laasst", next: "Nexast", previous: "Preavious" } }, --- jquery.dataTables/jquery.dataTables.d.ts | 27 ++++++++++++------------ 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/jquery.dataTables/jquery.dataTables.d.ts b/jquery.dataTables/jquery.dataTables.d.ts index 50ff52edd..9a5ea2124 100755 --- a/jquery.dataTables/jquery.dataTables.d.ts +++ b/jquery.dataTables/jquery.dataTables.d.ts @@ -1617,20 +1617,21 @@ declare module DataTables { //#region "language-settings" + // these are all optional interface LanguageSettings { - emptyTable: string; - info: string; - infoEmpty: string; - infoFiltered: string; - infoPostFix: string; - thousands: string; - lengthMenu: string; - loadingRecords: string; - processing: string; - search: string; - zeroRecords: string; - paginate: LanguagePaginateSettings; - aria: LanguageAriaSettings; + emptyTable?: string; + info?: string; + infoEmpty?: string; + infoFiltered?: string; + infoPostFix?: string; + thousands?: string; + lengthMenu?: string; + loadingRecords?: string; + processing?: string; + search?: string; + zeroRecords?: string; + paginate?: LanguagePaginateSettings; + aria?: LanguageAriaSettings; } interface LanguagePaginateSettings {