@enonic-types/core 7.11.0-RC4 → 7.11.1

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/index.d.ts +11 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -99,12 +99,22 @@ export interface Content<
99
99
  inherit?: ('CONTENT' | 'PARENT' | 'NAME' | 'SORT')[];
100
100
  }
101
101
 
102
+ // Compliant with npm module ts-brand
103
+ type Brand<
104
+ Base,
105
+ Branding
106
+ > = Base & {
107
+ '__type__': Branding
108
+ };
109
+
110
+ export type ByteSource = Brand<object, 'ByteSource'>;
111
+
102
112
  export interface Resource {
103
113
  getSize(): number;
104
114
 
105
115
  getTimestamp(): number;
106
116
 
107
- getStream(): object;
117
+ getStream(): ByteSource;
108
118
 
109
119
  exists(): boolean;
110
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/core",
3
- "version": "7.11.0-RC4",
3
+ "version": "7.11.1",
4
4
  "description": "Shared type definition for core libraries.",
5
5
  "types": "index.d.ts",
6
6
  "files": [