@milobedini/shared-types 1.0.48 → 1.0.49

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +7 -2
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -186,10 +186,15 @@ export type ProgramResponse = {
186
186
  export type ProgramsResponse = {
187
187
  programs: Program[];
188
188
  };
189
- export type ModulesResponse = {
189
+ export type ModulesPlainResponse = {
190
190
  success: boolean;
191
- modules: Module[] | AvailableModulesItem[];
191
+ modules: Module[];
192
+ };
193
+ export type ModulesWithMetaResponse = {
194
+ success: boolean;
195
+ items: AvailableModulesItem[];
192
196
  };
197
+ export type ModulesResponse = ModulesPlainResponse | ModulesWithMetaResponse;
193
198
  export type ModuleResponse = {
194
199
  success: boolean;
195
200
  module: Module;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milobedini/shared-types",
3
- "version": "1.0.48",
3
+ "version": "1.0.49",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [