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

60 lines
1.0 KiB
TypeScript
Raw Normal View History

2019-12-07 16:58:52 +05:30
declare module '*.html' {
2020-05-24 04:38:24 +05:30
const url: string;
export = url;
2019-12-07 16:58:52 +05:30
}
declare module '*.svg' {
2020-05-24 04:38:24 +05:30
const url: string;
export = url;
2019-12-07 16:58:52 +05:30
}
declare module '*.png' {
2020-05-24 04:38:24 +05:30
const url: string;
export = url;
2019-12-07 16:58:52 +05:30
}
declare module '*.gif' {
2020-05-24 04:38:24 +05:30
const url: string;
export = url;
2019-12-07 16:58:52 +05:30
}
declare module '*.jpg' {
2020-05-24 04:38:24 +05:30
const url: string;
export = url;
2019-12-07 16:58:52 +05:30
}
declare module '*.intl.json' {
2020-05-24 04:38:24 +05:30
import { MessageDescriptor } from 'react-intl';
2019-12-07 16:58:52 +05:30
2020-05-24 04:38:24 +05:30
const descriptor: Record<string, MessageDescriptor>;
2019-12-07 16:58:52 +05:30
2020-05-24 04:38:24 +05:30
export = descriptor;
2019-12-07 16:58:52 +05:30
}
declare module '*.json' {
2020-05-24 04:38:24 +05:30
const jsonContents: {
[key: string]: any;
};
2019-12-07 16:58:52 +05:30
2020-05-24 04:38:24 +05:30
export = jsonContents;
2019-12-07 16:58:52 +05:30
}
declare module '*.scss' {
2020-05-24 04:38:24 +05:30
// 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 16:58:52 +05:30
2020-05-24 04:38:24 +05:30
export = classNames;
2019-12-07 16:58:52 +05:30
}
declare module '*.css' {
2020-05-24 04:38:24 +05:30
const classNames: {
[className: string]: string;
};
2019-12-07 16:58:52 +05:30
2020-05-24 04:38:24 +05:30
export = classNames;
2019-12-07 16:58:52 +05:30
}