- use tabs for indentation (dev accessibility) 1 2
- typescript: use
type
unless you needinterface
features (e.g. declaration merging) 1 - typescript: use explicit
function
return types (clear intent, faster tsc, reduced inference) 1 2 - typescript: avoid
enum
(only supports string/number values; instead, use objects as const, or tryadt
) 1 - typescript: avoid
throw
(poor control flow; instead, return error objects, or trysafe
)
Pinned Loading
-
-
-
-
restful-api-design-tips
restful-api-design-tips PublicA working compilation of RESTful design principles.
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.