@video-editor/shared 0.0.1-beta.3 → 0.0.1-beta.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.
- package/dist/index.d.ts +14 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -193,6 +193,7 @@ export declare type ITrack<T extends ITrackType> = {
|
|
|
193
193
|
trackId: string;
|
|
194
194
|
trackType: T;
|
|
195
195
|
children: TrackTypeMapSegment[T][];
|
|
196
|
+
extra?: TrackExtra<T> | null;
|
|
196
197
|
} & (T extends 'frames' ? {
|
|
197
198
|
isMain?: boolean;
|
|
198
199
|
} : object);
|
|
@@ -224,14 +225,21 @@ export declare interface IVideoFramesSegment extends IFramesSegment {
|
|
|
224
225
|
* the numerical value is normalized in range [0, 1] unless otherwise specified
|
|
225
226
|
*/
|
|
226
227
|
export declare interface IVideoProtocol {
|
|
228
|
+
id: string;
|
|
227
229
|
version: `${number}.${number}.${number}`;
|
|
228
230
|
width: number;
|
|
229
231
|
height: number;
|
|
230
232
|
fps: number;
|
|
231
233
|
tracks: TrackUnion[];
|
|
234
|
+
extra?: ProtocolExtra | null;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
export declare type ProtocolExtra = ProtocolExtraRegistry extends Record<string, never> ? Record<string, never> : NonNullable<ProtocolExtraRegistry>;
|
|
238
|
+
|
|
239
|
+
export declare interface ProtocolExtraRegistry {
|
|
232
240
|
}
|
|
233
241
|
|
|
234
|
-
export declare type SegmentExtra<T extends ITrackType> = T extends keyof SegmentExtraRegistry ? SegmentExtraRegistry[T] : Record<string, never>;
|
|
242
|
+
export declare type SegmentExtra<T extends ITrackType> = T extends keyof SegmentExtraRegistry ? NonNullable<SegmentExtraRegistry[T]> : Record<string, never>;
|
|
235
243
|
|
|
236
244
|
export declare interface SegmentExtraRegistry {
|
|
237
245
|
}
|
|
@@ -251,6 +259,11 @@ declare interface TextSegment<T extends ITrackType> extends ISegment<T> {
|
|
|
251
259
|
*/
|
|
252
260
|
export declare const TRACK_TYPES: readonly ITrackType[];
|
|
253
261
|
|
|
262
|
+
export declare type TrackExtra<T extends ITrackType> = T extends keyof TrackExtraRegistry ? NonNullable<TrackExtraRegistry[T]> : Record<string, never>;
|
|
263
|
+
|
|
264
|
+
export declare interface TrackExtraRegistry {
|
|
265
|
+
}
|
|
266
|
+
|
|
254
267
|
export declare interface TrackTypeMapSegment {
|
|
255
268
|
frames: IFramesSegmentUnion;
|
|
256
269
|
text: TextSegment<'text'>;
|