Skip to content

Commit 377db04

Browse files
authored
Merge pull request #64 from imagekit-developer/bugfix/generic-type-fail
Bugfix/generic type fails
2 parents 892224f + d9a09a9 commit 377db04

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

sdk/lib/src/imagekitio-angular/imagekitio-angular.module.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
import { ModuleWithProviders, NgModule } from '@angular/core';
1+
import { ModuleWithProviders, NgModule, Provider, Type } from '@angular/core';
22
import { CommonModule } from '@angular/common';
33
import { IkImageComponent } from './ik-image/ik-image.component';
44
import { IkUploadComponent } from './ik-upload/ik-upload.component';
55
import { IkVideoComponent } from './ik-video/ik-video.component';
66
import { ImageKitConfiguration, ImagekitService } from './imagekit.service';
77

8+
declare module "@angular/core" {
9+
interface ModuleWithProviders {
10+
ngModule: Type<any>;
11+
providers?: (Provider)[] | undefined;
12+
}
13+
}
814

915
@NgModule({
1016
declarations: [IkUploadComponent, IkImageComponent, IkVideoComponent],
1117
imports: [CommonModule],
1218
exports: [IkUploadComponent, IkImageComponent, IkVideoComponent],
1319
providers: [ ImagekitService ]
1420
})
21+
1522
export class ImagekitioAngularModule {
1623

1724
static forRoot(config: ImageKitConfiguration): ModuleWithProviders {

sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imagekitio-angular",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",

0 commit comments

Comments
 (0)