mirror of
https://github.com/lovell/sharp.git
synced 2025-07-16 05:30:13 +02:00
Remove slightly-too-experimental TypeScript definitions.
To be revisited, perhaps during 2017, when tooling has improved.
This commit is contained in:
parent
e4e7384f99
commit
dfd6d95209
@ -15,10 +15,6 @@ Requires libvips v8.4.2.
|
|||||||
Access to these is now via output format functions, for example `quality(n)`
|
Access to these is now via output format functions, for example `quality(n)`
|
||||||
is now `jpeg({quality: n})` and/or `webp({quality: n})`.
|
is now `jpeg({quality: n})` and/or `webp({quality: n})`.
|
||||||
|
|
||||||
* Provide experimental, automated TypeScript declaration.
|
|
||||||
[#472](https://github.com/lovell/sharp/issues/472)
|
|
||||||
[@davidreher](https://github.com/davidreher)
|
|
||||||
|
|
||||||
* Expose libvips' "centre" resize option to mimic \*magick's +0.5px convention.
|
* Expose libvips' "centre" resize option to mimic \*magick's +0.5px convention.
|
||||||
[#568](https://github.com/lovell/sharp/issues/568)
|
[#568](https://github.com/lovell/sharp/issues/568)
|
||||||
|
|
||||||
|
1023
lib/types.d.ts
vendored
1023
lib/types.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@ -36,8 +36,7 @@
|
|||||||
"test": "semistandard && cross-env VIPS_WARNING=0 nyc --reporter=lcov --branches=99 mocha --slow=5000 --timeout=60000 ./test/unit/*.js",
|
"test": "semistandard && cross-env VIPS_WARNING=0 nyc --reporter=lcov --branches=99 mocha --slow=5000 --timeout=60000 ./test/unit/*.js",
|
||||||
"test-leak": "./test/leak/leak.sh",
|
"test-leak": "./test/leak/leak.sh",
|
||||||
"test-packaging": "./packaging/test-linux-x64.sh",
|
"test-packaging": "./packaging/test-linux-x64.sh",
|
||||||
"docs": "for m in constructor input resize composite operation colour channel output utility; do documentation build --shallow --format=md lib/$m.js >docs/api-$m.md; done",
|
"docs": "for m in constructor input resize composite operation colour channel output utility; do documentation build --shallow --format=md lib/$m.js >docs/api-$m.md; done"
|
||||||
"types": "./packaging/types.sh"
|
|
||||||
},
|
},
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/types.d.ts",
|
"types": "lib/types.d.ts",
|
||||||
@ -75,13 +74,11 @@
|
|||||||
"documentation": "^4.0.0-beta13",
|
"documentation": "^4.0.0-beta13",
|
||||||
"exif-reader": "^1.0.1",
|
"exif-reader": "^1.0.1",
|
||||||
"icc": "^0.0.2",
|
"icc": "^0.0.2",
|
||||||
"jsdoc": "^3.4.3",
|
|
||||||
"mocha": "^3.1.2",
|
"mocha": "^3.1.2",
|
||||||
"node-cpplint": "^0.4.0",
|
"node-cpplint": "^0.4.0",
|
||||||
"nyc": "^9.0.1",
|
"nyc": "^9.0.1",
|
||||||
"rimraf": "^2.5.4",
|
"rimraf": "^2.5.4",
|
||||||
"semistandard": "^9.1.0",
|
"semistandard": "^9.1.0",
|
||||||
"tsd-jsdoc": "lovell/tsd-jsdoc#add-support-for-promises",
|
|
||||||
"unzip": "^0.1.11"
|
"unzip": "^0.1.11"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# Regenerates lib/types.d.ts Typescript definitions
|
|
||||||
sources="lib/constructor.js lib/input.js lib/resize.js lib/composite.js lib/operation.js lib/colour.js lib/channel.js lib/output.js lib/utility.js"
|
|
||||||
types="types.d.ts"
|
|
||||||
|
|
||||||
# Generate types via JSDoc comments
|
|
||||||
./node_modules/.bin/jsdoc -d . -t ./node_modules/tsd-jsdoc $sources
|
|
||||||
|
|
||||||
# Wrap output with module declaration
|
|
||||||
echo "declare module \"sharp\" {\n" > "lib/$types"
|
|
||||||
cat "$types" >> "lib/$types"
|
|
||||||
echo "}\n" >> "lib/$types"
|
|
||||||
rm "$types"
|
|
Loading…
x
Reference in New Issue
Block a user