mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-02 20:06:06 +01:00 
			
		
		
		
	Fix remaining typescript issues, enable tsc (#32840)
				
					
				
			Fixes 79 typescript errors. Discovered at least two bugs in `notifications.ts`, and I'm pretty sure this feature was at least partially broken and may still be, I don't really know how to test it. After this, only like ~10 typescript errors remain in the codebase but those are harder to solve. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		@@ -51,6 +51,7 @@ function makeCollections({mentions, emoji}) {
 | 
			
		||||
export async function attachTribute(element, {mentions, emoji}) {
 | 
			
		||||
  const {default: Tribute} = await import(/* webpackChunkName: "tribute" */'tributejs');
 | 
			
		||||
  const collections = makeCollections({mentions, emoji});
 | 
			
		||||
  // @ts-expect-error TS2351: This expression is not constructable (strange, why)
 | 
			
		||||
  const tribute = new Tribute({collection: collections, noMatchTemplate: ''});
 | 
			
		||||
  tribute.attach(element);
 | 
			
		||||
  return tribute;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user