mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-21 01:00:30 -05:00
* chore: rename Default.js to default.tsx * chore: refactor default layout to typescript * use TFunction for type Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
40 lines
960 B
TypeScript
40 lines
960 B
TypeScript
// eslint-disable-next-line import/unambiguous
|
|
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;
|
|
};
|
|
};
|