Skip to content

add generic type for ModuleWithProviders #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add generic type for ModuleWithProviders
  • Loading branch information
Aleksandr Mikhailichenko committed Aug 21, 2023
commit 084eef76b4d50f8e8680f19a68d9360cad760aca
45 changes: 32 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orbitsoft/json-api-store",
"version": "4.2.0",
"version": "4.2.1",
"description": "Store that allows you interact with JSON API backend",
"homepage": "https://orbitsoft.com/",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { JsonApiResourceSerializer, JsonApiDocumentSerializer } from './serializ
]
})
export class JsonApiModule {
public static forRoot(apiUrl: string): ModuleWithProviders {
public static forRoot(apiUrl: string): ModuleWithProviders<JsonApiModule> {
return {
ngModule: JsonApiModule,
providers: [
Expand All @@ -30,4 +30,4 @@ export class JsonApiModule {
]
};
}
}
}