Skip to content

Commit

Permalink
add simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
ymichael committed Sep 17, 2024
1 parent 5f5333b commit 943a175
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion test-usage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 943a175

Please sign in to comment.