Martin Hochel
Martin Hochel
there is missing support for template literal types introduced in [TS 4.1](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-1.html#template-literal-types) ### Current Behaviour ```ts export declare type Greeting = `hello ${World}` declare type World = 'world' ``` βββ...
I wanna trigger lint error when barrel ( index ) file has `.tsx` extension. Also this rule should check that files use kebab case only. > Why? `tsx` == `component...
webStorage is a abstracion which uses under the hood localstorage with proper parse/deserialize ```js webStorage.set( 'string', 'Hello World' ); // tslint:disable-next-line:no-magic-numbers webStorage.set( 'number', 123 ); webStorage.set( 'boolean', true ); webStorage.set(...
```ts type Props = | { moo: string; children: React.ReactChild } | { as: 'button'; foo: number; children: React.ReactChild } function Button(props: Props) { return {props.children} } function App(){ return...
Closes https://github.com/Hotell/blogposts/issues/3
- why types are useful/needed beyond application logic ( for our dev-stack tooling configuration ) - what did we use till now ( ts-node, `tsc && node ...` ) -...
- long awaited successor of [part 1](https://medium.com/@martin_hotell/improved-redux-type-safety-with-typescript-2-8-2c11a8062575) - using techniques from 1st part combined with new techniques for handling side-effects - showcased on redux-observable and ngrx/effects
- how was it done prior to TS 2.9 - showcase class/functional components + why's - why `SFC` cannot be used for generic component definition