Skip to content

Commit bb38f2d

Browse files
committed
Build: Fix internal docgen issue
1 parent 1d0c0da commit bb38f2d

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

  • code/renderers/react/template/stories/docgen-components/ts-function-component

code/renderers/react/template/stories/docgen-components/ts-function-component/input.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import React from 'react';
44
// @ts-ignore (js import not supported in TS)
55
import { imported } from '../imported';
66
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
7-
// @ts-ignore (css import not supported in TS)
8-
import styles from '../imported.module.css';
7+
// @ts-ignore no types for this
8+
import * as styles from '../imported.module.css';
99

1010
const local = 'local-value';
1111

@@ -29,7 +29,9 @@ interface PropsWriterProps {
2929
importedReference?: string;
3030
globalReference?: any;
3131
stringGlobalName?: string;
32-
myClass: typeof styles.foo;
32+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
33+
// @ts-ignore no types for this
34+
myClass: typeof styles;
3335
}
3436

3537
/** A component that renders its props */
@@ -51,6 +53,8 @@ PropsWriter.defaultProps = {
5153
importedReference: imported,
5254
globalReference: Date,
5355
stringGlobalName: 'top',
56+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
57+
// @ts-ignore no types for this
5458
myClass: styles.foo,
5559
};
5660

0 commit comments

Comments
 (0)