selfrefactor / rambdax

Extended version of Rambda
https://selfrefactor.github.io/rambdax
MIT License
221 stars 26 forks source link

incorrect typings #2

Closed selfrefactor closed 6 years ago

selfrefactor commented 6 years ago

Typescript definitions are not great.

export const typesOfCommitRaw: CommitType[] = [
  DOCS,
  FEATURE_END,
  FEATURE_START,
  FIX_START,
  FIX_END,
  REFACTOR,
  SUPPORT,
  TEST_END,
  TEST_START,
]

export const typeOfCommit: string[] = typesOfCommitRaw.map(x => x.key)

Creating typeOfCommit with Rambda in Typescript context is not possible.