mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #47748 Export ImageKit interfaces by @mattleff
* Export ImageKit interfaces * Remove unneeded lint override * fix
This commit is contained in:
parent
e96ddce698
commit
feddf89542
@ -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',
|
||||
},
|
||||
]);
|
||||
|
||||
1869
types/imagekit/index.d.ts
vendored
1869
types/imagekit/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user