diff --git a/types/sortablejs/index.d.ts b/types/sortablejs/index.d.ts index 4ba7edc725..d94f9a5a85 100644 --- a/types/sortablejs/index.d.ts +++ b/types/sortablejs/index.d.ts @@ -62,6 +62,9 @@ declare class Sortable { /** Get the Sortable instance on an element. */ static get(element: HTMLElement): Sortable | undefined; + /** Get the Sortable version */ + static readonly version: string; + /** * Options getter/setter * @param name a Sortable.Options property. diff --git a/types/sortablejs/sortablejs-tests.ts b/types/sortablejs/sortablejs-tests.ts index f78555fd5c..5e74930f2c 100644 --- a/types/sortablejs/sortablejs-tests.ts +++ b/types/sortablejs/sortablejs-tests.ts @@ -77,6 +77,8 @@ simpleList.innerHTML = Array.apply(null, new Array(10)) Sortable.create(simpleList, {}); +Sortable.version; // $ExpectType string + simpleList.innerHTML = Array.apply(null, new Array(100)) .map(function(value: any, iterator: number) { return '