Skip to content

Commit c73d143

Browse files
committed
Fix undefined children property on ChildrenMixinStub
1 parent a49c1f6 commit c73d143

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/stubs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,19 @@ export const createFigma = (config: TConfig): PluginAPI => {
165165

166166
class DocumentNodeStub {
167167
type = "DOCUMENT";
168+
children = [];
168169
}
169170
applyMixins(DocumentNodeStub, [BaseNodeMixinStub, ChildrenMixinStub]);
170171

171172
class PageNodeStub {
172173
type = "PAGE";
174+
children = [];
173175
}
174176
applyMixins(PageNodeStub, [BaseNodeMixinStub, ChildrenMixinStub]);
175177

176178
class FrameNodeStub {
177179
type = "FRAME";
180+
children = [];
178181
}
179182
applyMixins(FrameNodeStub, [BaseNodeMixinStub, ChildrenMixinStub]);
180183

@@ -185,6 +188,7 @@ export const createFigma = (config: TConfig): PluginAPI => {
185188

186189
class ComponentNodeStub {
187190
type = "COMPONENT";
191+
children = [];
188192
}
189193
applyMixins(ComponentNodeStub, [BaseNodeMixinStub, ChildrenMixinStub]);
190194

0 commit comments

Comments
 (0)