remap with null handling
Open
RFC
- Dominant language
- TypeScript
- Stars
- 312
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
```ts
interface Value {
foo: number | null;
bar?: string;
}
const $demo = createStore(null);
const [$foo, $bar] = remap($demo, ["foo", "bar"]);
// type: [Store, Store]
const $justFoo = remap($demo, "foo");
// type: Store
```
Alternative names?
- `rechain`
Contributor guide
Research direction
Start with the remap API and the TypeScript examples in this issue. Determine whether the requested null-aware typing and naming should be adopted. Done would require a maintainer-approved API direction and implementation scope, but the issue identifies no files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100