diff --git a/docs/app/@core/core.module.ts b/docs/app/@core/core.module.ts index 6dc676fa..4e175b07 100644 --- a/docs/app/@core/core.module.ts +++ b/docs/app/@core/core.module.ts @@ -29,8 +29,8 @@ export class CoreModule { throwIfAlreadyLoaded(parentModule, 'CoreModule'); } - static forRoot(): ModuleWithProviders { - return { + static forRoot(): ModuleWithProviders { + return { ngModule: CoreModule, providers: [ ...NB_CORE_PROVIDERS, diff --git a/docs/app/@theme/theme.module.ts b/docs/app/@theme/theme.module.ts index f001da32..cd74e5d3 100644 --- a/docs/app/@theme/theme.module.ts +++ b/docs/app/@theme/theme.module.ts @@ -86,8 +86,8 @@ const COMPONENTS = [ ], }) export class NgxLandingThemeModule { - static forRoot(): ModuleWithProviders { - return { + static forRoot(): ModuleWithProviders { + return { ngModule: NgxLandingThemeModule, providers: [ ...NbThemeModule.forRoot({ name: 'ngx-landing' }).providers, diff --git a/docs/tsconfig.app.json b/docs/tsconfig.app.json index bda02f18..fb506e7e 100644 --- a/docs/tsconfig.app.json +++ b/docs/tsconfig.app.json @@ -1,19 +1,8 @@ { "extends": "../tsconfig.json", "compilerOptions": { - "sourceMap": true, - "declaration": false, - "moduleResolution": "node", - "emitDecoratorMetadata": true, - "experimentalDecorators": true, - "lib": [ - "es2017", - "dom" - ], "outDir": "../out-tsc/app", - "module": "es2015", - "baseUrl": ".", - "types": [] + "baseUrl": "." }, "exclude": [ "test.ts", diff --git a/docs/typings.d.ts b/docs/typings.d.ts index 17b76613..c7de4291 100644 --- a/docs/typings.d.ts +++ b/docs/typings.d.ts @@ -5,9 +5,11 @@ */ /* SystemJS module definition */ -declare var module: { +declare var module: NodeModule; +interface NodeModule { id: string; -}; -declare var require: any; +} + +declare var require: NodeRequire; declare var structure: any; declare var docs: any;