SHIV5T3R / CO-DE

An Open Source Collaborative Code Editor
35 stars 26 forks source link

Added types to frontend (From backend so it's easier to use) #19

Closed MrBisquit closed 1 year ago

MrBisquit commented 1 year ago

Added types to frontend

This is just basic data structure and can help with getting things started.

MrBisquit commented 1 year ago

Any particular reason why the object type properties are in snake_case? I'd think camelCase should be used. Similar with type names (e.g. Notification_Type should be NotificationType - no need for the underscore). Please refer to the style guide if you're having issues with naming convention here: https://github.com/airbnb/javascript/tree/master/react

It's fine it's just I normally name stuff that way, I'll change it later.

MrBisquit commented 1 year ago

I literally copied the names from backend btw