diff --git a/test-usage.sh b/test-usage.sh index 22fe0f0..7c43b67 100755 --- a/test-usage.sh +++ b/test-usage.sh @@ -177,12 +177,23 @@ cat > code.ts << EOF /** * Test file to test plugin-api-standalone.d.ts */ -import { SceneNode, FrameNode } from "@figma/plugin-typings/plugin-api-standalone" +import { SceneNode, FrameNode, GradientPaint } from "@figma/plugin-typings/plugin-api-standalone" function isFrameNode(x: SceneNode): x is FrameNode { return x.type === "FRAME" } +const gradient: GradientPaint = { + type: "GRADIENT_LINEAR", + gradientTransform: [[0, 0 ,0], [0, 0 ,0]], + gradientStops: [ + { + position: 0, + color: { r: 1, g: 1, b: 1, a: 1 } + } + ] +} + // @ts-expect-error No ambient types type VectorAlias = Vector EOF