@idealyst/tooling 1.2.14 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -254,8 +254,9 @@ function extractSampleProps(dir: string): SampleProps | undefined {
|
|
|
254
254
|
// Extract the object literal as JSON-compatible structure
|
|
255
255
|
// This is a simplified extraction - it handles basic literals
|
|
256
256
|
const result: SampleProps = {};
|
|
257
|
+
const propsNode = samplePropsNode as ts.ObjectLiteralExpression;
|
|
257
258
|
|
|
258
|
-
for (const prop of
|
|
259
|
+
for (const prop of propsNode.properties) {
|
|
259
260
|
if (ts.isPropertyAssignment(prop) && ts.isIdentifier(prop.name)) {
|
|
260
261
|
const propName = prop.name.text;
|
|
261
262
|
|