Skip to content
View paszkowskiDamian's full-sized avatar
👋
👋

Organizations

@WrocTypeScript

Block or report paszkowskiDamian

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

Pinned Loading

  1. Parallel data fetching Parallel data fetching
    1
    /*  Parallel fetch
    2
    *   Case:   When you need to fetch data from server and 
    3
    *           those request does not need data from previous one (they are independent).
    4
    *   Pros:   Significantly reduces time to get whole response.
    5
    */
  2. Brace balancing Brace balancing
    1
    const OPEN_BRACES = ['[', '{', '('] as const;
    2
    type OpenBrace = typeof OPEN_BRACES[number]
    3
    
                  
    4
    const CLOSED_BRACES = [']', '}', ')'] as const;
    5
    type ClosedBrace = typeof CLOSED_BRACES[number];
  3. If you need to specify that some typ... If you need to specify that some type is a key of some object where value is of type string you may use such construct.
    1
    interface Props<T extends Record<K, string>, K extends keyof T> {
    2
      data: T[];
    3
      row: ComponentType<T>;
    4
      primaryKey: K;
    5
    }
  4. piotrwitek/typesafe-actions piotrwitek/typesafe-actions Public

    Typesafe utilities for "action-creators" in Redux / Flux Architecture

    TypeScript 2.4k 97