@video-editor/shared 0.0.1-beta.2 → 0.0.1-beta.4
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 +13 -7
- 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);
|
|
@@ -229,17 +230,17 @@ export declare interface IVideoProtocol {
|
|
|
229
230
|
height: number;
|
|
230
231
|
fps: number;
|
|
231
232
|
tracks: TrackUnion[];
|
|
233
|
+
extra?: ProtocolExtra | null;
|
|
232
234
|
}
|
|
233
235
|
|
|
234
|
-
export declare type
|
|
236
|
+
export declare type ProtocolExtra = ProtocolExtraRegistry extends Record<string, never> ? Record<string, never> : NonNullable<ProtocolExtraRegistry>;
|
|
237
|
+
|
|
238
|
+
export declare interface ProtocolExtraRegistry {
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export declare type SegmentExtra<T extends ITrackType> = T extends keyof SegmentExtraRegistry ? NonNullable<SegmentExtraRegistry[T]> : Record<string, never>;
|
|
235
242
|
|
|
236
243
|
export declare interface SegmentExtraRegistry {
|
|
237
|
-
frames: Record<string, unknown>;
|
|
238
|
-
text: Record<string, unknown>;
|
|
239
|
-
image: Record<string, unknown>;
|
|
240
|
-
audio: Record<string, unknown>;
|
|
241
|
-
effect: Record<string, unknown>;
|
|
242
|
-
filter: Record<string, unknown>;
|
|
243
244
|
}
|
|
244
245
|
|
|
245
246
|
export declare type SegmentUnion = TrackTypeMapSegment[ITrackType];
|
|
@@ -257,6 +258,11 @@ declare interface TextSegment<T extends ITrackType> extends ISegment<T> {
|
|
|
257
258
|
*/
|
|
258
259
|
export declare const TRACK_TYPES: readonly ITrackType[];
|
|
259
260
|
|
|
261
|
+
export declare type TrackExtra<T extends ITrackType> = T extends keyof TrackExtraRegistry ? NonNullable<TrackExtraRegistry[T]> : Record<string, never>;
|
|
262
|
+
|
|
263
|
+
export declare interface TrackExtraRegistry {
|
|
264
|
+
}
|
|
265
|
+
|
|
260
266
|
export declare interface TrackTypeMapSegment {
|
|
261
267
|
frames: IFramesSegmentUnion;
|
|
262
268
|
text: TextSegment<'text'>;
|