accounts-frontend/@types/webpack-loaders.d.ts

60 lines
1.0 KiB
TypeScript
Raw Normal View History

2019-12-07 13:28:52 +02:00
declare module '*.html' {
2020-05-24 02:08:24 +03:00
const url: string;
export = url;
2019-12-07 13:28:52 +02:00
}
declare module '*.svg' {
2020-05-24 02:08:24 +03:00
const url: string;
export = url;
2019-12-07 13:28:52 +02:00
}
declare module '*.png' {
2020-05-24 02:08:24 +03:00
const url: string;
export = url;
2019-12-07 13:28:52 +02:00
}
declare module '*.gif' {
2020-05-24 02:08:24 +03:00
const url: string;
export = url;
2019-12-07 13:28:52 +02:00
}
declare module '*.jpg' {
2020-05-24 02:08:24 +03:00
const url: string;
export = url;
2019-12-07 13:28:52 +02:00
}
declare module '*.intl.json' {
2020-05-24 02:08:24 +03:00
import { MessageDescriptor } from 'react-intl';
2019-12-07 13:28:52 +02:00
2020-05-24 02:08:24 +03:00
const descriptor: Record<string, MessageDescriptor>;
2019-12-07 13:28:52 +02:00
2020-05-24 02:08:24 +03:00
export = descriptor;
2019-12-07 13:28:52 +02:00
}
declare module '*.json' {
2020-05-24 02:08:24 +03:00
const jsonContents: {
[key: string]: any;
};
2019-12-07 13:28:52 +02:00
2020-05-24 02:08:24 +03:00
export = jsonContents;
2019-12-07 13:28:52 +02:00
}
declare module '*.scss' {
2020-05-24 02:08:24 +03:00
// TODO: replace with:
// https://www.npmjs.com/package/css-modules-typescript-loader
// https://github.com/Jimdo/typings-for-css-modules-loader
const classNames: {
[className: string]: string;
};
2019-12-07 13:28:52 +02:00
2020-05-24 02:08:24 +03:00
export = classNames;
2019-12-07 13:28:52 +02:00
}
declare module '*.css' {
2020-05-24 02:08:24 +03:00
const classNames: {
[className: string]: string;
};
2019-12-07 13:28:52 +02:00
2020-05-24 02:08:24 +03:00
export = classNames;
2019-12-07 13:28:52 +02:00
}