How do i fix this mistyping

heres the error. i cant understand why it throws this error cuz types seems to match. playground with all the classes and error here too: link
Π‘ΠΎΠΊΡ€Π°Ρ‰Π΅Π½ΠΈΠ΅ ΠΈ ΡƒΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ ссылками | ΠšΠΎΡ€ΠΎΡ‚ΠΊΠΈΠ΅ URL
Π‘ΠΎΠΊΡ€Π°Ρ‰Π΅Π½ΠΈΠ΅ ΠΈ ΡƒΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ ссылками | К...
Π‘ΠΎΠΊΡ€Π°Ρ‰Π°ΠΉΡ‚Π΅ ссылки ΠΈ эффСктивно управляйтС ΠΈΠΌΠΈ. Наш сСрвис прСдоставляСт ΡƒΠ΄ΠΎΠ±Π½Ρ‹Π΅ инструмСнты для создания ΠΊΠΎΡ€ΠΎΡ‚ΠΊΠΈΡ… ссылок, отслСТивания ΠΈΡ… эффСктивности ΠΈ Π΄Π΅Ρ‚Π°Π»ΡŒΠ½ΠΎΠΉ Π°Π½Π°Π»ΠΈΡ‚ΠΈΠΊΠΈ.
No description
17 Replies
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
Tverksaac 2.0
Tverksaac 2.0OPβ€’2mo ago
oh 1 sec
Tverksaac 2.0
Tverksaac 2.0OPβ€’2mo ago
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
Tverksaac 2.0
Tverksaac 2.0OPβ€’2mo ago
why??
Unknown User
Unknown Userβ€’2mo ago
Message Not Public
Sign In & Join Server To View
Tverksaac 2.0
Tverksaac 2.0OPβ€’2mo ago
well i put type for connected property so it can contain anything what exactly?
Solution
wAD
wADβ€’2mo ago
wAD
wADβ€’2mo ago
@Tverksaac 2.0
Tverksaac 2.0
Tverksaac 2.0OPβ€’2mo ago
i scared for a moment can you explain little bitπŸ˜ƒ
wAD
wADβ€’2mo ago
well for properties we have to create what is called a mapped type we iterate over all possible union values of keyof WritableInstanceProperties<Humanoid> make it optional by following with a question mark and a value would be passing current key into ur ConnectedProperty type meaning it eventually resolves to a proper property type for every possible key
Tverksaac 2.0
Tverksaac 2.0OPβ€’2mo ago
oh i see, but then key have to be named after the property its connected to? oh or not because of question mark
wAD
wADβ€’2mo ago
yes (the former)
Tverksaac 2.0
Tverksaac 2.0OPβ€’2mo ago
i see now thank you soo much
wAD
wADβ€’2mo ago
u also should probably do this for Stats
Tverksaac 2.0
Tverksaac 2.0OPβ€’2mo ago
im not sure, cuz i need stats to have any name cuz they dont have to be connected to something

Did you find this page helpful?