Files
freeCodeCamp/client/src/declarations.d.ts
Oliver Eyton-Williams 7fe4695794 refactor: ignore eslint less (#45082)
* refactor: remove and fix some eslint disables

* refactor: drop max-line disables
2022-02-11 10:28:13 -08:00

39 lines
913 B
TypeScript

declare module '@freecodecamp/react-bootstrap';
declare module '@freecodecamp/strip-comments';
declare module '@types/react-redux';
declare module '@types/validator';
declare module '@types/lodash-es';
declare module 'react-lazy-load';
declare module '*.svg' {
const content: string;
export default content;
}
declare module '*.woff' {
const url: string;
export default url;
}
declare module '*.png' {
const content: string;
export default content;
}
declare module 'sha-1' {
export default function sha1(str: string): string;
}
// This has to be declared as var, not let or const, to be added to globalThis
// eslint-disable-next-line no-var
declare var MathJax: {
Hub: {
Config: (attributes: {
tex2jax: {
inlineMath: Array<string[]>;
processEscapes: boolean;
processClass: string;
};
}) => void;
Queue: (attributes: unknown[]) => void;
};
};