I perfectly know why the error is raised but I can't find a way to suppress it (that is not // @ts-ignore). I'm using style-loader with the inline syntax:
import styles from '!style-loader?injectType=lazyStyleTag!css-loader!vendor/style.css';
Cannot find module '!style-loader?injectType=lazyStyleTag!css-loader!vendor/style.css'' or its corresponding type declarations.
How should I "instruct" TypeScript that the import is legit?
EDIT: declaration as per answer:
declare module '!style-loader?*' {
const value: { use: (options?: Record<string, any>) => void, unuse: () => void };
export default value;
}