Fix: Types for some sorting plug-ins needed to be updated

pull/567/head
Allan Jardine 1 year ago
parent d2b32a16eb
commit 4b02618578

@ -1,6 +1,6 @@
/*! © SpryMedia Ltd - datatables.net/license */
declare module 'datatables.net' {
interface DataTablesStatic {
interface ApiStatic {
/** Define an absolute sort with string based sorting */
absoluteOrder(values: any[]): any;
/** Define an absolute sort with number based sorting */

2
sorting/intl.d.ts vendored

@ -1,6 +1,6 @@
/*! © SpryMedia Ltd - datatables.net/license */
declare module 'datatables.net' {
interface DataTablesStatic {
interface ApiStatic {
intlOrder(locals: string, options: Intl.CollatorOptions): any;
}
}

@ -1,6 +1,6 @@
/*! © SpryMedia Ltd - datatables.net/license */
declare module 'datatables.net' {
interface DataTablesStatic {
interface ApiStatic {
/** Sorting for number value that is included anywhere in a regex. */
numString(format: RegExp): any;
}

@ -40,7 +40,7 @@
import DataTable from 'datatables.net';
declare module 'datatables.net' {
interface DataTablesStatic {
interface ApiStatic {
/** Define an absolute sort with string based sorting */
absoluteOrder(values: any[]);

@ -39,7 +39,7 @@
import DataTable from 'datatables.net';
declare module 'datatables.net' {
interface DataTablesStatic {
interface ApiStatic {
intlOrder(locals: string, options: Intl.CollatorOptions);
}
}
@ -58,4 +58,4 @@ DataTable.intlOrder = function (locales, options) {
};
// Old style originally introduced in the blog post
(DataTable.ext.type.order as any).intl = DataTable.intlOrder;
DataTable.ext.type.order.intl = DataTable.intlOrder;

@ -36,7 +36,7 @@
import DataTable from 'datatables.net';
declare module 'datatables.net' {
interface DataTablesStatic {
interface ApiStatic {
/** Sorting for number value that is included anywhere in a regex. */
numString(format: RegExp);
}

Loading…
Cancel
Save