File tree Expand file tree Collapse file tree
code/renderers/react/template/stories/docgen-components/ts-function-component Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import React from 'react';
44// @ts -ignore (js import not supported in TS)
55import { 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
1010const 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
You can’t perform that action at this time.
0 commit comments