forked from SortableJS/vue.draggable.next
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request SortableJS#81 from SortableJS/Improve-TS-support
improve ts support
- Loading branch information
Showing
13 changed files
with
180 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es2016", | ||
"lib":["esnext", "DOM"], | ||
"moduleResolution": "node", | ||
"allowJs": true, | ||
"checkJs": true, | ||
"emitDeclarationOnly": true, | ||
"downlevelIteration": true, | ||
"esModuleInterop": true, | ||
"outDir": "./types", | ||
"declaration": true | ||
}, | ||
"files": [ | ||
"./src/vuedraggable.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export function getComponentAttributes({ $attrs, componentData }: { | ||
$attrs: any; | ||
componentData?: {}; | ||
}): any; | ||
export function createSortableOption({ $attrs, callBackBuilder }: { | ||
$attrs: any; | ||
callBackBuilder: any; | ||
}): any; | ||
export function getValidSortableEntries(value: any): any[][]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export class ComponentStructure { | ||
constructor({ nodes: { header, default: defaultNodes, footer }, root, realList }: { | ||
nodes: { | ||
header: any; | ||
default: any; | ||
footer: any; | ||
}; | ||
root: any; | ||
realList: any; | ||
}); | ||
defaultNodes: any; | ||
children: any[]; | ||
externalComponent: any; | ||
rootTransition: any; | ||
tag: any; | ||
realList: any; | ||
get _isRootComponent(): any; | ||
render(h: any, attributes: any): any; | ||
updated(): void; | ||
getUnderlyingVm(domElement: any): any; | ||
getVmIndexFromDomIndex(domIndex: any, element: any): any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export function computeComponentStructure({ $slots, tag, realList, getKey }: { | ||
$slots: any; | ||
tag: any; | ||
realList: any; | ||
getKey: any; | ||
}): ComponentStructure; | ||
import { ComponentStructure } from "./componentStructure"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export namespace events { | ||
export { manage }; | ||
export { manageAndEmit }; | ||
export { emit }; | ||
} | ||
export function isReadOnly(eventName: any): boolean; | ||
declare const manage: string[]; | ||
declare const manageAndEmit: string[]; | ||
declare const emit: string[]; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const console: Console; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export function insertNodeAt(fatherNode: any, node: any, position: any): void; | ||
export function removeNode(node: any): void; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export function camelize(str: any): any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export function isHtmlTag(name: any): boolean; | ||
export function isHtmlAttribute(value: any): any; | ||
export function isTransition(name: any): boolean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters