Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript support #431

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
cd70faa
TypeScript support
davidchambers Jul 29, 2017
0754c90
replace β€˜A’ with β€˜any’ in type definitions for S.parseJson
davidchambers Jul 30, 2017
a44dd10
more type definitions for S.equals
davidchambers Jul 30, 2017
77ac50a
more type definitions for comparison functions
davidchambers Jul 30, 2017
dd8466f
add missing parameter names
davidchambers Aug 1, 2017
5b0ee39
initial support for placeholders
davidchambers Aug 2, 2017
f81c7e6
use β€˜true’ rather than β€˜boolean’ in Placeholder type definition
davidchambers Aug 2, 2017
d730717
Fix for error TS7006 when building with noImplicitAny.
miangraham Aug 31, 2017
fe869b8
more type definitions
davidchambers Aug 3, 2017
d998b96
Automated typechecking/linting/testing for TypeScript definitions.
miangraham Aug 31, 2017
0c38120
Makefile and tslint.json cleanup
miangraham Aug 31, 2017
be10bd0
First pass TS defs for Function and Logic, plus many tests
miangraham Sep 2, 2017
5a16c53
TS defs: Curried versions of Logic functions
miangraham Sep 3, 2017
a11808a
TS defs: Composition types, Function and Logic improvements
miangraham Sep 4, 2017
3952f97
List first pass: Unary currying only
miangraham Sep 12, 2017
98241de
remove placeholder support
davidchambers Oct 1, 2017
1706c97
TS defs: Array first pass, List fixes
miangraham Oct 1, 2017
10e34fb
replace Ramda-style currying with regular currying
davidchambers Oct 1, 2017
51f060d
introduce Fn[1-5] types to reduce noise
davidchambers Oct 1, 2017
cd39ed4
filterM
davidchambers Oct 1, 2017
1f73801
type definitions for remaining functions (not methods)
davidchambers Oct 2, 2017
2f42fa8
add TypeScript translation of Mocha test suite
davidchambers Oct 3, 2017
d8db0ee
uncomment assertions
davidchambers Oct 5, 2017
2fa600f
patch
davidchambers Oct 6, 2017
6b4f52c
another patch
davidchambers Oct 6, 2017
a543011
simplify definitions of polymorphic functions
davidchambers Oct 8, 2017
e91ae97
remove tests for functions which no longer exist
davidchambers Mar 13, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ NPM = npm
REMARK = node_modules/.bin/remark --frail --no-stdout
REMEMBER_BOWER = node_modules/.bin/remember-bower
TRANSCRIBE = node_modules/.bin/transcribe
TSLINT = node_modules/.bin/tslint
TYPINGS_CHECKER = node_modules/.bin/typings-checker
XYZ = node_modules/.bin/xyz --repo [email protected]:sanctuary-js/sanctuary.git --script scripts/prepublish


Expand Down Expand Up @@ -32,6 +34,13 @@ README.md.tmp: index.js
.PHONY: lint
lint:
$(ESLINT) -- index.js karma.conf.js scripts/version-urls test
$(TSLINT) \
--type-check \
--project tsconfig.json \
-- index.d.ts
$(TSLINT) \
--project test/typescript/tsconfig.json \
-- test/typescript/*.ts
$(REMEMBER_BOWER) $(shell pwd)
rm -f README.md
VERSION=0.0.0 make README.md
Expand All @@ -57,6 +66,7 @@ setup:
test:
$(ISTANBUL) cover node_modules/.bin/_mocha
$(ISTANBUL) check-coverage --branches 100
$(TYPINGS_CHECKER) --allow-expect-error --project test/typescript/tsconfig.json test/typescript/*.ts
ifeq ($(shell node --version | cut -d . -f 1),v6)
$(DOCTEST) -- index.js
else
Expand Down
Loading