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
Π‘ΠΎΠΊΡΠ°ΡΠ΅Π½ΠΈΠ΅ ΠΈ ΡΠΏΡΠ°Π²Π»Π΅Π½ΠΈΠ΅ ΡΡΡΠ»ΠΊΠ°ΠΌΠΈ | Π...
Π‘ΠΎΠΊΡΠ°ΡΠ°ΠΉΡΠ΅ ΡΡΡΠ»ΠΊΠΈ ΠΈ ΡΡΡΠ΅ΠΊΡΠΈΠ²Π½ΠΎ ΡΠΏΡΠ°Π²Π»ΡΠΉΡΠ΅ ΠΈΠΌΠΈ. ΠΠ°Ρ ΡΠ΅ΡΠ²ΠΈΡ ΠΏΡΠ΅Π΄ΠΎΡΡΠ°Π²Π»ΡΠ΅Ρ ΡΠ΄ΠΎΠ±Π½ΡΠ΅ ΠΈΠ½ΡΡΡΡΠΌΠ΅Π½ΡΡ Π΄Π»Ρ ΡΠΎΠ·Π΄Π°Π½ΠΈΡ ΠΊΠΎΡΠΎΡΠΊΠΈΡ
ΡΡΡΠ»ΠΎΠΊ, ΠΎΡΡΠ»Π΅ΠΆΠΈΠ²Π°Π½ΠΈΡ ΠΈΡ
ΡΡΡΠ΅ΠΊΡΠΈΠ²Π½ΠΎΡΡΠΈ ΠΈ Π΄Π΅ΡΠ°Π»ΡΠ½ΠΎΠΉ Π°Π½Π°Π»ΠΈΡΠΈΠΊΠΈ.

Solution:Jump to solution
17 Replies
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
oh 1 sec
here
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
why??
Unknown Userβ’2mo ago
Message Not Public
Sign In & Join Server To View
well i put type for connected property so it can contain anything
what exactly?
Solution
@Tverksaac 2.0
i scared for a moment
can you explain little bitπ
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 keyDocumentation - Mapped Types
Generating types by re-using an existing type.
oh i see, but then key have to be named after the property its connected to? oh or not because of question mark
yes
(the former)
i see now
thank you soo much
u also should probably do this for
Stats
im not sure, cuz i need stats to have any name cuz they dont have to be connected to something