Why does TypeScript behave this way? const isArray = (value: any) => Array.isArray(value) const f = ( input: string | string[] ) => { if (isArray(input)) { // ✗ in...
Any tricks to make TypeScript treat f2 like f1 here? // Only allows x in returned object const f1 = (): { x: any } => ({ x: 1, y: 2 }) type F = () => { x: any } // Allows y...
In what scenario would you want a child of a button to respond to pointer events?
What's the Ramda way of calling a deeply nested object of functions over a corresponding object of their input args to get the corresponding object of their return values? For...
Maybe also consider adding TS assertion functions? https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#assertion-functions
I feel like enums should be avoided in TS now in favor of string literal unions. No runtime overhead and consistent with JS. Is there any case where using an enum makes more s...
Setting up webpack? It's not too bad, and worth it I think. Especially if you have a highly customized config and turn it into a Neutrino preset to use in all of your projects...
You shouldn't normally need to do this. Where does this data object come from?
I don't think the guide mentions nested objects, does it?
What does it have to do with monorepos? It's about loading a client-side app in the browser, without making the user download and execute a large bundle upfront.
Without a bundler? npm.im/dimport
How long have you been using it? Heard it's buggy
That doesn't seem valid. Did you mean to pass an IIFE to respondWith()?
If you're already using Firebase, what do you need the Node backend for? It's better to use Firebase Auth for authentication.
What's this file? Probably not worth compiling, just change the arrow functions in your script
Are your source code changes reflected on the container?
What does a contenteditable div give you over a regular textarea if your input is markdown?
Doesn't typeof return a string here, and type foo is set to be just a string literal type?
Do you know about https://github.com/pelotom/runtypes?
Ah interesting. Is this mentioned anywhere in their docs other than that example?