Skip to content
View peterboyer's full-sized avatar
  • Sydney, Australia
  • 22:55 (UTC +10: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 pb.adt) 1
  • typescript: avoid throw (poor control flow; instead, return error objects, or try pb.safe)

Pinned Loading

  1. pb.adt pb.adt Public

    Universal ADT utilities. (Formerly unenum).

    TypeScript 19 1

  2. pb.safe pb.safe Public

    Errors as values; try/catch as a function.

    TypeScript 1

  3. pb.types pb.types Public

    Utility types like Equal, Intersect, Identity and more.

    TypeScript 1

  4. dotfiles dotfiles Public

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

    Lua 1