Results for “strict”
Small, practical examples. Search by task or narrow things down below.
Safely read a caught error
Check the error type before accessing its message.
unknown✓ Tested
Scope a component’s styles
Scope a component’s styles with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Select fields with the Pick utility type
Expose a smaller view of a larger object type.
Pick✓ Tested
Separate a first item from the remaining items
TypeScript: Array destructuring and a rest element produce named pieces of a sequence.
TypeScript✓ Tested
Set a control value programmatically
Set a control value programmatically with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Set no-new-privileges in Compose
Docker / Compose: security_opt configures the process privilege restriction.
Docker / Compose✓ Tested
Share signal state through an injected service
Share signal state through an injected service with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Share two-way state through a model input
Share two-way state through a model input with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Show a bounded preview and remaining count
Show a bounded preview and remaining count with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Sort a derived copy of a collection
Sort a derived copy of a collection with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Sort timestamp strings by their parsed instants
TypeScript: Compare epoch values explicitly when date strings may contain different offsets.
TypeScript✓ Tested
Split an array into bounded batches
TypeScript: Advance by a positive batch size and allow a shorter final chunk.
TypeScript✓ Tested