Log inSign up
Mateusz Burzyński
13.6K posts
Image
user avatar
Mateusz Burzyński
@AndaristRake
programmer but also a little bit of code-poet wannabe, maintaining XState, Emotion, redux-saga & more, OSS enthusiast
Wroclaw, Poland
github.com/sponsors/Andar…
Joined June 2014
419
Following
8,518
Followers
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Jun 2, 2022
    I've spotted a new label in the TypeScript repo and I dig it 🤣
    Image
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Mar 15, 2024
    Oh, yeeeeah, this has been merged 😍😍😍😍😍😍😍😍😍 TS 5.5 is gonna be one of the most epic releases in a while, once again - huge props to @danvdk
    Image
    Infer type predicates from function bodies using control flow analysis by danvk · Pull Request...
    From github.com
    113K
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Oct 19, 2022
    A code snippet like this saved me already *multiple times* when investigating why the focus shifts somewhere unexpectadly
    Code snippet overriding focus method on HTMLElement and SVGElement prototypes with an added console.log that logs the call stack when it gets called
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Dec 31, 2023
    You all will love this, such a great DX improvement ❤️
    Image
    Preserve type refinements in closures created past last assignment by ahejlsberg · Pull Request...
    From github.com
    127K
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Feb 8, 2023
    Just noticed my name in the TS 5.0 release notes, not bad for a junior dev
    Image
    Announcing TypeScript 5.0 Beta - TypeScript
    From devblogs.microsoft.com
    58K
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Nov 3, 2021
    Wow, this is huuuuuge:
    Image
    Control flow analysis for destructured discriminated unions by ahejlsberg · Pull Request #46266 ·...
    From github.com
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Dec 17, 2021
    OMG, you only tell me now about this?! { "jest": { "snapshotFormat": { "printBasicPrototype": false } } }
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Sep 8, 2022
    This is not a drill! Improvements to the *in operator* might be coming in TS 4.9 🔥🔥🔥 github.com/microsoft/Type…
    Example of the code trying to narrow the type of an unknown type parameter using the in operator. It's not possible today but it might become possible in the upcoming version of TypeScript.
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Dec 3, 2024
    I'm supposed to be good at TypeScript but typing generic wrappers around React.forwardRef is... 🫠
    23K
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Apr 2, 2022
    One dev "super power" that I have is debugging... how do I teach this to others?
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Nov 6, 2024
    I'll remember the world before and after this PR: github.com/microsoft/Type… The new era of conditional types checking is coming in TypeScript 5.8!
    Image
    Narrow generic conditional and indexed access return types when checking return statements by...
    From github.com
    23K
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Jan 1, 2024
    Reverse mapped types are just so super elegant for certain use cases... Here we have an equivalent of `Promise.allSettled` that retains positional information for each item in the input typescriptlang.org/play?ts=5.3.2#…
    type SettledResult<T> =
  | { status: "fulfilled"; value: T }
  | { status: "rejected"; reason: unknown };

declare function promiseAllSettled<T extends readonly unknown[]>(
  promises: [...{ [K in keyof T]: Promise<T[K]> }],
): {
  [K in keyof T]: SettledResult<T[K]>;
};

const p1 = Promise.resolve("");
const p2 = Promise.resolve(10);

const result = promiseAllSettled([p1, p2]);
//    ^? const result: [SettledResult<string>, SettledResult<number>]
    33K
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Nov 15, 2024
    I'm reading v8 source code to understand how promises are created and chained internally... what my life has become
    29K
  • user avatar
    Mateusz Burzyński
    @AndaristRake
    Feb 21, 2024
    An interesting experiment to infer type guards by @danvdk
    Image
    Infer type predicates from function bodies using control flow analysis by danvk · Pull Request...
    From github.com
    59K

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
Advertisement
Advertisement