KardainK
Reactiflux3y ago
7 replies
Kardain

✅ – ✅ – kardain_ – 15-32 Aug 21

hello, i'm wondering what is the difference between :
1:
interface InterfaceName {
property1 : number
}


vs
2:
interface InterfaceName {
"property1": number
}


i didn't knew of the 2nd one until today when i reviewed a project i'm taking over, and i'm wondering why it's used instead of 1
Was this page helpful?