Daniel Nixon

Results 87 issues of Daniel Nixon

Given some type with non-optional properties: ``` export interface Address { street_address: string; city: string; state: string; } ``` we get the following io-ts codec: ``` const Address = t.type({street_address:...

1. ✅ Add a tsc build step (using raw js files) 2. ✅ Add type-coverage build step and corresponding badge 3. ✅ Port js files to ts 4. Enable tsc...

tech debt

## Bug Report Hi, me again with another recursion issue :P ```ts export type ReadonlyURLSearchParams = Readonly< OmitStrict >; // explosion here export const readonlyURLSearchParams = ( // eslint-disable-next-line functional/prefer-immutable-types...

Type: Bug
Status: Investigation Needed

## Bug Report ```ts type Thing = { a: string }; type OtherThing = { readonly a: string }; declare const a: readonly OtherThing[]; // Surprising. I would expect ReadonlyShallow,...

Type: Bug
Status: Triage

## Suggestion A new rule that forbids the partial versions of `reduce` and `reduceRight`. Given: ```typescript const arr: readonly string[] = ...; // may or may not be empty ```...

Type: Idea
Status: Awaiting Feedback

## Suggestion A new rule to prevent assignment of one value to another where the target has a lower immutability level (per https://github.com/RebeccaStevens/is-immutable-type/#definitions) than the source. Such assignments can lead...

Priority: Low
Type: Feature
Accepted

## Suggestion When using `functional/functional-parameters`, we have [`ignorePrefixSelector`](https://github.com/eslint-functional/eslint-plugin-functional/blob/main/docs/rules/functional-parameters.md#ignoreprefixselector) but that can't tap into TypeScript type information. There are a few places that I would love to whitelist in a way...

Priority: Low
Type: Feature
Accepted

Prefer https://github.com/Effect-TS/effect or https://gcanti.github.io/fp-ts/modules/TaskEither.ts.html

fp-ts

See https://github.com/microsoft/TypeScript/issues/47920 and https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#the-satisfies-operator