mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
fix(sortablejs): missing version static property (#45877)
This adds `version` property that DT CI scripts complaints about. https://github.com/SortableJS/Sortable/blob/master/src/Sortable.js#L1968 https://github.com/DefinitelyTyped/DefinitelyTyped/pull/45684#issuecomment-648745109 Thanks!
This commit is contained in:
parent
034e05a68e
commit
1b0989af10
3
types/sortablejs/index.d.ts
vendored
3
types/sortablejs/index.d.ts
vendored
@ -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.
|
||||
|
||||
@ -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 '<div class="list-group-item">item ' + (iterator + 1) + '</div>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user