type Effect = DropShadowEffect | InnerShadowEffect | BlurEffect;
interface DropShadowEffect {
readonly type: "DROP_SHADOW";
readonly color: RGBA;
readonly offset: Vector;
readonly radius: number;
readonly spread?: number;
readonly visible: boolean;
readonly blendMode: BlendMode;
readonly showShadowBehindNode?: boolean;
}
interface InnerShadowEffect {
readonly type: "INNER_SHADOW";
readonly color: RGBA;
readonly offset: Vector;
readonly radius: number;
readonly spread?: number;
readonly visible: boolean;
readonly blendMode: BlendMode;
}
interface BlurEffect {
readonly type: "LAYER_BLUR" | "BACKGROUND_BLUR";
readonly radius: number;
readonly visible: boolean;
}