Skip to content

Commit

Permalink
Merge pull request #64 from imagekit-developer/bugfix/generic-type-fail
Browse files Browse the repository at this point in the history
Bugfix/generic type fails
  • Loading branch information
imagekitio authored Aug 9, 2023
2 parents 892224f + d9a09a9 commit 377db04
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion sdk/lib/src/imagekitio-angular/imagekitio-angular.module.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
import { ModuleWithProviders, NgModule } from '@angular/core';
import { ModuleWithProviders, NgModule, Provider, Type } from '@angular/core';
import { CommonModule } from '@angular/common';
import { IkImageComponent } from './ik-image/ik-image.component';
import { IkUploadComponent } from './ik-upload/ik-upload.component';
import { IkVideoComponent } from './ik-video/ik-video.component';
import { ImageKitConfiguration, ImagekitService } from './imagekit.service';

declare module "@angular/core" {
interface ModuleWithProviders {
ngModule: Type<any>;
providers?: (Provider)[] | undefined;
}
}

@NgModule({
declarations: [IkUploadComponent, IkImageComponent, IkVideoComponent],
imports: [CommonModule],
exports: [IkUploadComponent, IkImageComponent, IkVideoComponent],
providers: [ ImagekitService ]
})

export class ImagekitioAngularModule {

static forRoot(config: ImageKitConfiguration): ModuleWithProviders {
Expand Down
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imagekitio-angular",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down

0 comments on commit 377db04

Please sign in to comment.