Skip to content

I'm helping! #1411

Answered by gcanti
waynevanson asked this question in Q&A
Feb 26, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Thank you @waynevanson,

I have a todo list containing general tasks, like:

"weird" names

In order to be more friendly I'd like to rename some APIs.

Examples in v2.10:

  • cons -> prepend
  • snoc -> append
  • getDualSemigroup -> reverse
  • fold -> concatAll

unsafe signatures

Scan the codebase looking for possibly unsafe signatures.

Example (ReadonlyRecord's singleton)

declare function singleton<K extends string, A>(k: K, a: A): ReadonlyRecord<K, A>

declare const k: 'a' | 'b'

// const x1: Readonly<Record<"a" | "b", number>>
const x1 = singleton(k, 1)

type parameters order

In v3 I'm following this convention: type parameters should be declared in order of appearance.

(a linting rule would help)

make p…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@gkamperis
Comment options

@dszlachta
Comment options

@thekemlin
Comment options

Answer selected by waynevanson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants