fix type errors
This commit is contained in:
		
							parent
							
								
									99efa6b42c
								
							
						
					
					
						commit
						203eeb9761
					
				
					 7 changed files with 7 additions and 7 deletions
				
			
		|  | @ -38,7 +38,7 @@ function clamp(input: number, min: number, max: number) { | |||
| } | ||||
| 
 | ||||
| const MediaViewer: ParentComponent<MediaViewerProps> = (props) => { | ||||
|   let rootRef: HTMLDialogElement; | ||||
|   let rootRef!: HTMLDialogElement; | ||||
| 
 | ||||
|   type State = { | ||||
|     ref?: HTMLElement; | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ const PullDownToRefresh: Component<{ | |||
|   linkedElement?: HTMLElement; | ||||
|   onRefresh?: () => void; | ||||
| }> = (props) => { | ||||
|   let rootElement: HTMLDivElement; | ||||
|   let rootElement!: HTMLDivElement; | ||||
|   const [pullDown, setPullDown] = createSignal(0); | ||||
| 
 | ||||
|   const stopPos = () => 160; | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ type ChooseTootLangProps = { | |||
| }; | ||||
| 
 | ||||
| const ChooseTootLang: Component<ChooseTootLangProps> = (props) => { | ||||
|   let listRef: HTMLUListElement; | ||||
|   let listRef!: HTMLUListElement; | ||||
|   const [t] = createTranslator( | ||||
|     (code) => | ||||
|       import(`./i18n/${code}.json`) as Promise<{ | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ export function PreviewCard(props: { | |||
|   src: mastodon.v1.PreviewCard; | ||||
|   alwaysCompact?: boolean; | ||||
| }) { | ||||
|   let root: HTMLAnchorElement; | ||||
|   let root!: HTMLAnchorElement; | ||||
| 
 | ||||
|   createEffect(() => { | ||||
|     if (props.alwaysCompact) { | ||||
|  |  | |||
|  | @ -33,7 +33,7 @@ type TootPollProps = { | |||
| }; | ||||
| 
 | ||||
| const TootPoll: Component<TootPollProps> = (props) => { | ||||
|   let list: HTMLUListElement; | ||||
|   let list!: HTMLUListElement; | ||||
|   const { vote } = useTootEnv(); | ||||
| 
 | ||||
|   const now = useTimeSource(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue