File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ type DiscordComponents = {
5858 | TextAreaType
5959 | TextInputType
6060 | OriginalTooltipType
61+ | unknown
6162> ;
6263
6364export default await waitForProps < DiscordComponents > ( "ConfirmModal" , "ToastPosition" , "Text" ) ;
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ const source = sourceStrings[rawMod?.id].matchAll(
170170 / i f \( \w + \. t y p e = = = \w + \. ( \w + ) (?: \. \w + ) ? \) .+ ?t y p e : " ( .+ ?) " / gs,
171171) ;
172172
173- const menuComponents = Object . entries ( components )
173+ const menuComponents = Object . entries ( components as Record < string , ( ) => null > )
174174 . filter ( ( [ _ , m ] ) => / ^ f u n c t i o n .+ \( e ? \) { ( \s + ) ? r e t u r n n u l l ( \s + ) ? } $ / . test ( m ?. toString ?.( ) ) )
175175 . reduce < Record < string , ( ) => null > > ( ( components , [ name , component ] ) => {
176176 components [ name . substring ( 0 , 2 ) ] = component ;
You can’t perform that action at this time.
0 commit comments