ngx-translate-multi-http-loader 19.0.3 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,5 +1,18 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ngx-translate-multi-http-loader" />
5
- export * from './public-api';
1
+ import { HttpBackend } from '@angular/common/http';
2
+ import { TranslateLoader } from '@ngx-translate/core';
3
+ import { Observable } from 'rxjs';
4
+
5
+ interface TranslationResource {
6
+ prefix: string;
7
+ suffix?: string;
8
+ optional?: boolean;
9
+ }
10
+ declare class MultiTranslateHttpLoader implements TranslateLoader {
11
+ private _handler;
12
+ private _resourcesPrefix;
13
+ constructor(_handler: HttpBackend, _resourcesPrefix: (string | TranslationResource)[]);
14
+ getTranslation(lang: string): Observable<any>;
15
+ }
16
+
17
+ export { MultiTranslateHttpLoader };
18
+ export type { TranslationResource };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-translate-multi-http-loader",
3
- "version": "19.0.3",
3
+ "version": "20.0.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Raphaël Balet",
@@ -1,14 +0,0 @@
1
- import { HttpBackend } from '@angular/common/http';
2
- import { TranslateLoader } from '@ngx-translate/core';
3
- import { Observable } from 'rxjs';
4
- export interface TranslationResource {
5
- prefix: string;
6
- suffix?: string;
7
- optional?: boolean;
8
- }
9
- export declare class MultiTranslateHttpLoader implements TranslateLoader {
10
- private _handler;
11
- private _resourcesPrefix;
12
- constructor(_handler: HttpBackend, _resourcesPrefix: (string | TranslationResource)[]);
13
- getTranslation(lang: string): Observable<any>;
14
- }
package/public-api.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib/multi-http-loader';