Skip to content
View peterboyer's full-sized avatar
  • Sydney, Australia
  • 10:19 (UTC +11:00)

Block or report peterboyer

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
peterboyer/README.md
  • use tabs for indentation (dev accessibility) 1 2
  • typescript: use type unless you need interface 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 try adt) 1
  • typescript: avoid throw (poor control flow; instead, return error objects, or try safe)

Pinned Loading

  1. adt adt Public

    Universal ADT utilities. (Formerly unenum).

    TypeScript 19 1

  2. safe safe Public

    Errors as values; try/catch as a function.

    TypeScript 1

  3. expectequal expectequal Public

    Assert exact equality of types.

    TypeScript 1

  4. metadom metadom Public

    Meta-DOM. Signal-driven, declarative UI.

    TypeScript

  5. dotfiles dotfiles Public

    My personal configs for zsh/nvim/tmux/git/etc.

    Lua

  6. restful-api-design-tips restful-api-design-tips Public

    A working compilation of RESTful design principles.

    317 21