@oak-digital/types-4-strapi-2 1.0.3 → 1.0.5

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.
@@ -166,7 +166,7 @@ class Attributes {
166
166
  break;
167
167
  case 'media':
168
168
  const mediaMultipleString = attr.multiple
169
- ? '[]'
169
+ ? `[] ${requiredString}`
170
170
  : requiredString;
171
171
  str += `{ data: `;
172
172
  str += this.RelationNames['builtins::Media'].name;
@@ -7,11 +7,11 @@ export declare enum Events {
7
7
  BeforeInjectDependencies = "BeforeInjectDependencies",
8
8
  AfterInjectDependencies = "AfterInjectDependencies"
9
9
  }
10
- export declare type SchemasType = {
10
+ export type SchemasType = {
11
11
  apiSchemas: Record<string, any>[];
12
12
  componentSchemas: Record<string, any>[];
13
13
  };
14
- export declare type EventTypes = {
14
+ export type EventTypes = {
15
15
  BeforeReadSchema: SchemasType;
16
16
  AfterReadSchema: SchemasType;
17
17
  };
@@ -10,4 +10,4 @@ var Events;
10
10
  Events["ModifySchemas"] = "ModifySchemas";
11
11
  Events["BeforeInjectDependencies"] = "BeforeInjectDependencies";
12
12
  Events["AfterInjectDependencies"] = "AfterInjectDependencies";
13
- })(Events = exports.Events || (exports.Events = {}));
13
+ })(Events || (exports.Events = Events = {}));
@@ -1,5 +1,5 @@
1
1
  import { caseType } from '../utils/casing';
2
- export declare type RelationNames = Record<string, {
2
+ export type RelationNames = Record<string, {
3
3
  name: string;
4
4
  file: File;
5
5
  }>;