@embark-black-book/api-contract 0.12.0 → 0.13.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.
@@ -1,29 +1,10 @@
1
- export type StrapiImageFormatName =
2
- | "xsmall"
3
- | "small"
4
- | "medium"
5
- | "large"
6
- | "xlarge";
7
-
8
- export interface StrapiImageFormat {
9
- url: string;
10
- width?: number;
11
- height?: number;
12
- size?: number;
13
- ext?: string;
14
- mime?: string;
15
- hash?: string;
16
- name?: string;
17
- path?: string;
18
- }
19
-
20
- export interface StrapiImageFormats {
21
- xsmall?: StrapiImageFormat;
22
- small?: StrapiImageFormat;
23
- medium?: StrapiImageFormat;
24
- large?: StrapiImageFormat;
25
- xlarge?: StrapiImageFormat;
26
- }
1
+ // The image format types are declared once, in the generated api-types (ApiMedia uses
2
+ // them), and exported from the package root from there. Declaring them here too made
3
+ // index.d.ts export each name from two modules, which TypeScript treats as ambiguous.
4
+ import type {
5
+ StrapiImageFormatName,
6
+ StrapiImageFormats,
7
+ } from "./generated/api-types";
27
8
 
28
9
  export interface StrapiImageLike {
29
10
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embark-black-book/api-contract",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Type contract package generated from Blackbook by Embark Strapi OpenAPI",
5
5
  "license": "UNLICENSED",
6
6
  "exports": {