Skip to content

Instantly share code, notes, and snippets.

View franklinrms's full-sized avatar

Franklin Ramos franklinrms

View GitHub Profile

Para descobrir quais arquivos npm vai publicar no tarball sem realmente publicar:

npm pack && tar -xvzf *.tgz && rm -rf package *.tgz
/* eslint-disable @typescript-eslint/no-explicit-any */
export type ReturnTypeWithoutPromise<T extends (...args: any) => any> =
T extends (...args: any) => Promise<infer U> ? U : never
🌞 Morning 16 commits ▋░░░░░░░░░░░░░░░░░░░░ 3.4%
🌆 Daytime 159 commits ███████░░░░░░░░░░░░░░ 33.6%
🌃 Evening 285 commits ████████████▋░░░░░░░░ 60.3%
🌙 Night 13 commits ▌░░░░░░░░░░░░░░░░░░░░ 2.7%