mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 02:46:04 +01:00 
			
		
		
		
	Refactor repo-projects.ts (#32892)
- Remove jQuery - Add types to all functions - Tested all modified functionality --------- Co-authored-by: Giteabot <teabot@gitea.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -1,6 +1,7 @@ | ||||
| import type {SortableOptions, SortableEvent} from 'sortablejs'; | ||||
| import type SortableType from 'sortablejs'; | ||||
|  | ||||
| export async function createSortable(el: Element, opts: {handle?: string} & SortableOptions = {}) { | ||||
| export async function createSortable(el: Element, opts: {handle?: string} & SortableOptions = {}): Promise<SortableType> { | ||||
|   // @ts-expect-error: wrong type derived by typescript | ||||
|   const {Sortable} = await import(/* webpackChunkName: "sortablejs" */'sortablejs'); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user