typescript-tips

mgechev Minko Gechev (@mgechev@mstdn.social) (@mgechev) - November 22, 2021 at 1:30 PM

TypeScript tip: use as const after literals to: ‣ Recursively set object properties to readonly ‣ Make arrays readonly tuples ‣ Disable type widening pic.twitter.com/uDjNeUnK2U

Tweet link