Skip to main content
How to fix TSLint: expected call-signature: 'toggleText' to have a typedef(typedef)
How to find object with id from array of objects and manipulate it in TypeScript
The solution (one of the possible solutions) is to find the index with findIndex method and then manipulate the object in the original array of objects with that index
How to fix error TS2339: Property 'detail' does not exist on type 'Event'.
How to fix error TS2345: Argument of type 'Event' is not assignable to parameter of type 'Cus tomEvent<ItemReorderEventDetail>'.
TSLint: Type string trivially inferred from a string literal, remove type annotation(no-inferrable-types)
How to use functions inside a switch statement in TypeScript
Personally, I like the readability of switch statements. Here is how to include functions as well in TypeScript.
error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
Single-line if statements in TypeScript how to
I'm tired of these old-school single-line statements and looked up one-line solutions. The following one is pretty clean in my eyes
How to check if two arrays of objects are identical in TypeScript
Comparison of objects is something we have to do often. Lodash is a good partner for this!
How to set formControl default value but prevent to affect observable subscription
How to not subscribe to form changes when you set the default value via the ReactiveForms API
Subscribe to TypeScript