Fixing TS linter errors

This commit is contained in:
2026-06-16 21:17:42 +03:00
parent 6f46083a90
commit 8f8d593ff0
4 changed files with 2225 additions and 2 deletions

6
declarations.d.ts vendored
View File

@@ -2,3 +2,9 @@ declare module "*.module.scss" {
const classes: { [key: string]: string }; const classes: { [key: string]: string };
export default classes; export default classes;
} }
declare module "react-transition-group/CSSTransition" {
import { ComponentType } from "react";
const CSSTransition: ComponentType<any>;
export default CSSTransition;
}

2217
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { CSSTransition } from 'react-transition-group'; import CSSTransition from 'react-transition-group/CSSTransition';
import shared from '../../styles/Shared.module.scss'; import shared from '../../styles/Shared.module.scss';
import styles from '../../styles/Archive.module.scss'; import styles from '../../styles/Archive.module.scss';
import PerformersData2021 from '../../data/performers/2021'; import PerformersData2021 from '../../data/performers/2021';

View File

@@ -13,5 +13,5 @@
"jsx": "react-jsx", "jsx": "react-jsx",
"strict": true "strict": true
}, },
"include": ["src", "data", "types"] "include": ["src", "data", "types", "declarations.d.ts"]
} }