@contentstorage/core 0.3.18 → 0.3.21

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.
@@ -4,7 +4,7 @@ import { ContentStructure } from '../types.js';
4
4
  * It will internally ensure the application configuration (for contentDir) is loaded.
5
5
  * @param languageCode The language code (e.g., 'EN', 'FR') for the JSON file to load.
6
6
  */
7
- export declare function setContentLanguage(contentJson: ContentStructure | null): void;
7
+ export declare function setContentLanguage(contentJson: object): void;
8
8
  /**
9
9
  * Retrieves the text string from the loaded JSON content for the given path.
10
10
  * Autocompletion for pathString is enabled via module augmentation of CustomContentStructure.
package/dist/types.d.ts CHANGED
@@ -21,5 +21,4 @@ export type LanguageCode = 'SQ' | 'BE' | 'BS' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL'
21
21
  * }
22
22
  */
23
23
  export interface ContentStructure {
24
- [key: string]: any;
25
24
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@contentstorage/core",
3
3
  "author": "Kaido Hussar <kaidohus@gmail.com>",
4
4
  "homepage": "https://contentstorage.app",
5
- "version": "0.3.18",
5
+ "version": "0.3.21",
6
6
  "type": "module",
7
7
  "description": "Fetch content from contentstorage and generate TypeScript types",
8
8
  "module": "dist/index.js",