Skip to content

Commit cf98d14

Browse files
committed
AE: Remove incorrect PlaceholderItem class
1 parent 2955b57 commit cf98d14

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

AfterEffects/8.0/index.d.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ declare enum TrackMatteType {
544544
* TYPES
545545
*/
546546
type _PropertyClasses = Property | PropertyGroup | MaskPropertyGroup
547-
type _ItemClasses = CompItem | FootageItem | FolderItem
547+
type _ItemClasses = CompItem | FootageItem<FootageSourceType> | FolderItem
548548

549549
/** Clears text from the Info panel. */
550550
declare var clearOutput: () => void
@@ -989,13 +989,16 @@ declare class FolderItem extends Item {
989989
item(index: number): _ItemClasses
990990
}
991991

992+
/** These don't exist in AE, just here for the ease of types */
993+
type FootageSourceType = SolidSource | FileSource | PlaceholderSource;
994+
992995
/** The FootageItem object represents a footage item imported into a project, which appears in the Project panel. These are accessed by position index number in a project’s item collection. */
993-
declare class FootageItem extends AVItem {
996+
declare class FootageItem<FootageSourceType> extends AVItem {
994997
/** The footage source file. */
995998
readonly file: File | null
996999

9971000
/** All settings related to the footage item. */
998-
readonly mainSource: FootageSource
1001+
readonly mainSource: FootageSourceType
9991002

10001003
/** Replaces a footage file with another footage file. */
10011004
replace(file: File): void
@@ -1022,7 +1025,9 @@ declare class FootageItem extends AVItem {
10221025
): void
10231026
}
10241027

1025-
declare class PlaceholderItem extends FootageItem {}
1028+
type SolidItem = FootageItem<SolidSource>;
1029+
type FileItem = FootageItem<FileSource>;
1030+
type PlaceholderItem = FootageItem<PlaceholderSource>;
10261031

10271032
/** The FootageSource object holds information describing the source of some footage. It is used as the mainSource of a FootageItem, or the proxySource of a CompItem or FootageItem. */
10281033
declare class FootageSource {

0 commit comments

Comments
 (0)