Skip to content
View guckin's full-sized avatar
💾
💾
  • Portland, OR
  • 03:46 (UTC -08:00)

Block or report guckin

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. Typescript Types and Utilities ✨ Typescript Types and Utilities ✨
    1
    export type NonEmptyArray<T> = readonly [T, ...Array<T>];
    2
    
                  
    3
    export type TwoOrMore<T> = readonly [T, ...NonEmptyArray<T>];
    4
    
                  
    5
    export type UnaryFn<I, O> = (value: I) => O;
  2. serverless-template serverless-template Public template

    TypeScript 2 1

  3. Jest interface mock Jest interface mock
    1
    export type UnknownFunction = (...args: any[]) => any;
    2
    
                  
    3
    export type MockedInterface<T extends object> = {
    4
        [K in keyof T]: T[K] extends UnknownFunction ? jest.Mock : never;
    5
    };
  4. Observer pattern example Observer pattern example
    1
    
                  
    2
    type SubscriptionFunction<T> = (value: T) => (Promise<void> | void);
    3
    
                  
    4
    type Observer<T> = {
    5
        subscribe: (subscriptionFunction: SubscriptionFunction<T>) => void;