Skip to content

Commit 0fab9a1

Browse files
committed
fix typescript testing issue
1 parent bb74ebc commit 0fab9a1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

@plotly/dash-generator-test-component-typescript/src/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Needs to export types if not in a d.ts file or if any import is present in the d.ts
22
import React from 'react';
3-
import {DashComponent} from '@dash-renderer/types/component';
3+
import {DashComponent} from '@dash-renderer/types';
44

55

66
type Nested = {

@plotly/dash-generator-test-component-typescript/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"jsx": "react",
44
"baseUrl": "src/ts",
55
"paths": {
6+
"@dash-renderer/*": ["../../../../dash/dash-renderer/src/*"]
67
},
78
"inlineSources": true,
89
"sourceMap": true,

dash/dash-renderer/src/wrapper/DashWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function DashWrapper({
391391

392392
if (node !== undefined) {
393393
if (isArray) {
394-
for (let j = 0; j < node.length; j++) {
394+
for (let j = 0; j < (node as []).length; j++) {
395395
const aPath = concat([opath], [j]);
396396
props = assocPath(
397397
aPath,

0 commit comments

Comments
 (0)