🤖 Merge PR #47748 Export ImageKit interfaces by @mattleff

* Export ImageKit interfaces

* Remove unneeded lint override

* fix
This commit is contained in:
Matthew Leffler 2020-09-20 11:17:23 -06:00 committed by GitHub
parent e96ddce698
commit feddf89542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 953 additions and 925 deletions

View File

@ -1,4 +1,5 @@
import ImageKit = require('imagekit');
import { Transformation } from 'imagekit';
const imageKit = new ImageKit({
privateKey: 'private_1234',
@ -42,3 +43,11 @@ imageKit.getAuthenticationParameters('token'); // $ExpectType { token: string; e
imageKit.getAuthenticationParameters('token', 1000); // $ExpectType { token: string; expire: number; signature: string; }
imageKit.pHashDistance('hashA', 'hashB'); // $ExpectType number
const applyTransformations = (transformations: Transformation[]) => transformations;
applyTransformations([
{
height: '300',
width: '200',
},
]);

File diff suppressed because it is too large Load Diff