Skip to content

Commit

Permalink
chore@small
Browse files Browse the repository at this point in the history
  • Loading branch information
selfrefactor committed Aug 20, 2024
1 parent 615a8e2 commit ac7eb37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
5 changes: 2 additions & 3 deletions files/NEXT_VERSION_CHECKLIST.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
throttle should accept 0 arguments, i.e. no need to force unary function

https://github.com/ramda/types/pull/37/files
---
ABOVE IS DONE
---
https://github.com/ramda/types/pull/37/files

https://github.com/ramda/types/pull/37/files#diff-60589fd0fcb0f4ced0a8957986e06e1fce8b9193dce547b2fee7f9446cb41c48
https://github.com/ramda/types/pull/127/files
---
ABOVE IS IN PROGRESS
---
https://github.com/ramda/types/pull/127/files
---
ABOVE SHOULD BE DONE
---
Expand Down
11 changes: 1 addition & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,20 @@
"build:main": "cross-env NODE_ENV=build rollup -c files/rollup.config.mjs",
"build:step": "yarn populatereadme && yarn build:main",
"build:web": "cross-env NODE_ENV=build rollup -c files/rollup.web.config.mjs",
"d": "yarn out && yarn lint && run d",
"d": "yarn out && run d",
"docs": "npx docsify-cli init ./docs && yarn fix-docsify",
"fix-docsify": "cd ../rambda-scripts && yarn fix-docsify:rambda",
"git:add": "git add -A",
"github": "cd ../rambda-scripts && yarn github",
"immutable": "cd ../rambda-scripts && yarn immutable:rambda",
"immutable:x": "cd ../rambda-scripts && yarn immutable:rambdax",
"lint": "yarn git:add && yarn lint:staged && yarn git:add",
"lint:all": "cd ../rambda-scripts && yarn lint",
"lint:staged": "cd ../rambda-scripts && yarn lint:staged",
"new": "cd ../rambda-scripts && yarn new",
"out": "yarn populatedocs && yarn populatereadme && yarn immutable && yarn build",
"populatedocs": "cd ../rambda-scripts && yarn populate:docs",
"populatedocs:x": "cd ../rambda-scripts && yarn populate:docs:rambdax",
"populatereadme": "cd ../rambda-scripts && yarn populate:readme",
"populatereadme:x": "cd ../rambda-scripts && yarn populate:readme:rambdax",
"run:ramda:test": "cd ../rambda-scripts && yarn run:ramda:test",
"test": "jest -o -u --watch",
"test:all": "jest source/*.spec.js -u --bail=false",
"test:ci": "jest source/*.spec.js --coverage --no-cache -w 1",
"test:typings": "dtslint --localTs ./node_modules/typescript/lib --expectOnly ./source",
"test:ts": "yarn test:typings",
"ts": "yarn test:typings",
"usedby": "cd ../rambda-scripts && yarn usedby",
"x": "yarn populatedocs:x && yarn populatereadme:x && yarn immutable:x"
},
Expand Down
6 changes: 5 additions & 1 deletion source/lens-spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {lens, assoc, lensProp, view, lensIndex, lensPath} from 'rambda'
import {lens, assoc, lensProp, view, lensIndex, over, lensPath} from 'rambda'

interface Input {
foo: string,
Expand All @@ -22,6 +22,10 @@ describe('R.lensProp', () => {
const result = view<Input, string>(lensProp('foo'), testObject)
result // $ExpectType string
})
it('issue 740', () => {
// @ts-expect-error
over(lensProp('x'), (n) => String(n), {x: 1})
})
})

describe('R.lensIndex', () => {
Expand Down

0 comments on commit ac7eb37

Please sign in to comment.