Skip to content

Commit

Permalink
refactor: revert FIleAssetSource types
Browse files Browse the repository at this point in the history
  • Loading branch information
HayesGordon committed Feb 4, 2025
1 parent 3538673 commit 0af9ec1
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,25 +136,12 @@ export interface RiveRendererInterface {
): void;
}

export type FileAssetSource =
| {
sourceUrl: string;
sourceAsset?: never;
sourceAssetId?: never;
path?: never;
}
| {
sourceAsset: string;
sourceUrl?: never;
sourceAssetId?: never;
path?: never;
}
| {
sourceAssetId: string;
path?: string;
sourceUrl?: never;
sourceAsset?: never;
};
export interface FileAssetSource {
sourceUrl?: string;
sourceAsset?: string;
sourceAssetId?: string;
path?: string;
}

export interface FileHandlerOptions {
source: RiveAssetPropType | FileAssetSource;
Expand Down

0 comments on commit 0af9ec1

Please sign in to comment.