lexora 1.3.4 → 1.3.6

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/dist/index.d.ts CHANGED
@@ -9,4 +9,5 @@ import { LexoraContext, TranslateCallContext } from "./lib/LexoraContext";
9
9
  import { PipelineFunction } from "./lib/PipelineFunction/PipelineFunction";
10
10
  import { StringResource, StringResourceMap, SR } from "./lib/StringResource";
11
11
  import { WatchableString } from "./lib/WatchableString";
12
- export { LanguageKey, LanguagePack, LanguagePacks, LexoraContext, StringResource, StringResourceMap, PipelineFunction, WatchableString, TranslateCallContext, boundTemplate, isBoundTemplate, BoundTemplate, SR };
12
+ import { Template } from "./lib/Types";
13
+ export { LanguageKey, LanguagePack, LanguagePacks, LexoraContext, StringResource, StringResourceMap, PipelineFunction, WatchableString, TranslateCallContext, boundTemplate, isBoundTemplate, BoundTemplate, SR, Template };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,4BAA0B;AAC1B,2CAAyC;AACzC,2CAAyC;AAEzC,uDAAoF;AAmBhF,8FAnBoB,6BAAa,OAmBpB;AACb,gGApBmC,+BAAe,OAoBnC;AAlBnB,qDAAmD;AAU/C,8FAVK,4BAAa,OAUL;AARjB,uDAA0E;AAStE,8FATK,6BAAa,OASL;AAPjB,yDAA6E;AAgBzE,mFAhBwC,mBAAE,OAgBxC;AAfN,2DAAwD;AAUpD,gGAVK,iCAAe,OAUL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,4BAA0B;AAC1B,2CAAyC;AACzC,2CAAyC;AAEzC,uDAAoF;AAoBhF,8FApBoB,6BAAa,OAoBpB;AACb,gGArBmC,+BAAe,OAqBnC;AAnBnB,qDAAmD;AAW/C,8FAXK,4BAAa,OAWL;AATjB,uDAA0E;AAUtE,8FAVK,6BAAa,OAUL;AARjB,yDAA6E;AAiBzE,mFAjBwC,mBAAE,OAiBxC;AAhBN,2DAAwD;AAWpD,gGAXK,iCAAe,OAWL"}
@@ -100,8 +100,8 @@ export declare class LexoraContext extends EventEmitter.Protected<{
100
100
  get(key: string, context?: TranslateCallContext): string;
101
101
  getWatch(key: string, context?: TranslateCallContext): WatchableString<LexoraContext>;
102
102
  translate(template: BoundTemplate): string;
103
- translate(template: StringResourceMap | string, context?: TranslateCallContext): string;
103
+ translate(template: StringResource | StringResourceMap | string, context?: TranslateCallContext): string;
104
104
  translateWatch(template: BoundTemplate): WatchableString<LexoraContext>;
105
- translateWatch(template: StringResourceMap | string, context?: TranslateCallContext): WatchableString<LexoraContext>;
105
+ translateWatch(template: StringResource | StringResourceMap | string, context?: TranslateCallContext): WatchableString<LexoraContext>;
106
106
  }
107
107
  export {};
@@ -1,4 +1,4 @@
1
1
  import { BoundTemplate } from "./BoundTemplate";
2
- import { StringResourceMap } from "./StringResource";
2
+ import { StringResource, StringResourceMap } from "./StringResource";
3
3
  export type SingleOrArray<T> = T | T[];
4
- export type Template = string | StringResourceMap | BoundTemplate;
4
+ export type Template = string | StringResource | StringResourceMap | BoundTemplate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lexora",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "A lightweight TypeScript helper for managing multi-language strings with optional grammatical support.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",