DefinitelyTyped/types/imagekit
kevinf 8b3d5d4686
imagekit-nodejs (#46966)
* added initial types for imagekit

* renamed response type

* added todos

* make token and signature optional parameters

* upload callback should return a UploadResponse type

* updated api version to MAJOR.MINOR

* removed module declaration, and transformed enums to types

* renamed to UrlOptionsBase

* changed class to interface

* made reference to node

* used 'export =' syntax

* switched to declare class instead of interface

* added first

* resolved lint errors

* passing void for delete file callback

* removed comment

* added full list of method tests

* added prettier

* added initial types for imagekit

* renamed response type

* added todos

* make token and signature optional parameters

* upload callback should return a UploadResponse type

* updated api version to MAJOR.MINOR

* removed module declaration, and transformed enums to types

* renamed to UrlOptionsBase

* changed class to interface

* made reference to node

* used 'export =' syntax

* switched to declare class instead of interface

* added first

* resolved lint errors

* passing void for delete file callback

* removed comment

* added full list of method tests

* added prettier

* 'all' is a valid FileType as well

* Tags are just a comma-separated string, not an array

* ListFile returns a createdAt string in the response

* Added CustomCoordinatesResponse Interface

* TransformationPosition is optional

* Again no array, just a string

* responseFields is optional

* isPrivateFile always present in response

* Added FileFormat type and changed a few numbers to strings

* Added myself (Romanos) to contributors

* Fixed a typo

* switched file from 'number|sting' to 'string|Buffer' type

* added see docs for upload response

* added comments for list and search options

* passed base64 image in tests

* removed responseFields from test

* applied prettier

* removed unneeded expected type for test

* added comments for upload method and listfile response

* added comments for FileDetailsResponse

* Fixed no-irregular-whitespace eslint errors

* cleaned type and added more comments

* cleaned irregular whitespaces

* reverted customcoordinates type

* Transformation type documentation + 2 fixes

* Small additions to FileMetadataResponse

* Fixed trailing and irregular whitespace

Co-authored-by: romdim <rom-dim@hotmail.com>
2020-08-27 19:59:50 -04:00
..
imagekit-tests.ts
index.d.ts
tsconfig.json
tslint.json