@enonic-types/core 7.11.0 → 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.
- package/index.d.ts +11 -1
- 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():
|
|
117
|
+
getStream(): ByteSource;
|
|
108
118
|
|
|
109
119
|
exists(): boolean;
|
|
110
120
|
}
|