Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import React from 'react';
// @ts-ignore (js import not supported in TS)
import { imported } from '../imported';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore (css import not supported in TS)
import styles from '../imported.module.css';
// @ts-ignore no types for this
import * as styles from '../imported.module.css';

const local = 'local-value';

Expand All @@ -29,7 +29,9 @@ interface PropsWriterProps {
importedReference?: string;
globalReference?: any;
stringGlobalName?: string;
myClass: typeof styles.foo;
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore no types for this
myClass: typeof styles;
}

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

Expand Down
Loading