π Search Terms
the title
β
Viability Checklist
β Suggestion
I want the wildcard module to warn about files that don't exist. Build tools resolve this normally. And typescript would too if the file ended in .ts. Allow importing arbitrary extensions does not make this error go away.
π Motivating Example
import warningIcon from "@material-symbols/svg-400/outlined/warning-fill.svg";
declare module "*.svg" {
const css: string;
export default css;
}
π» Use Cases
- What do you want to use this for?
- What shortcomings exist with current approaches?
- What workarounds are you using in the meantime?
π Search Terms
the title
β Viability Checklist
β Suggestion
I want the wildcard module to warn about files that don't exist. Build tools resolve this normally. And typescript would too if the file ended in
.ts. Allow importing arbitrary extensions does not make this error go away.π Motivating Example
π» Use Cases