Skip to content

Commit

Permalink
fix: fixing types for forRoot() method
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Nov 29, 2020
1 parent fbf37cc commit bb7ad60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- Solving `forRoot()` types error `Generic type 'ModuleWithProviders<T>' requires 1 type argument(s)`. Closes https://github.com/willmendesneto/ngx-skeleton-loader/issues/51

## [Unreleased][]

## [2.6.0][] - 2020-11-15
Expand Down Expand Up @@ -314,7 +318,5 @@ Now we can define the animation we want to use in `<ngx-skeleton-loader>` compon
[2.4.4]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.4.4
[unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.5.0...HEAD
[2.5.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.5.0


[Unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.0...HEAD
[2.6.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.0
[unreleased]: https://github.com/willmendesneto/ngx-skeleton-loader/compare/v2.6.0...HEAD
[2.6.0]: https://github.com/willmendesneto/ngx-skeleton-loader/tree/v2.6.0
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { CommonModule } from '@angular/common';
})

export class NgxSkeletonLoaderModule {
static forRoot(): ModuleWithProviders {
static forRoot(): ModuleWithProviders<NgxSkeletonLoaderModule> {
return {
ngModule: NgxSkeletonLoaderModule,
};
Expand Down

0 comments on commit bb7ad60

Please sign in to comment.