Skip to content

remove any from ImageTrail #218

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/ts-default/Animations/ImageTrail/ImageTrail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,17 @@ class ImageTrailVariant8 {
}
}

const variantMap: { [key: number]: new (container: HTMLDivElement) => any } = {
type ImageTrailConstructor =
| typeof ImageTrailVariant1
| typeof ImageTrailVariant2
| typeof ImageTrailVariant3
| typeof ImageTrailVariant4
| typeof ImageTrailVariant5
| typeof ImageTrailVariant6
| typeof ImageTrailVariant7
| typeof ImageTrailVariant8;

const variantMap: Record<number, ImageTrailConstructor> = {
1: ImageTrailVariant1,
2: ImageTrailVariant2,
3: ImageTrailVariant3,
Expand Down
12 changes: 11 additions & 1 deletion src/ts-tailwind/Animations/ImageTrail/ImageTrail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,17 @@ class ImageTrailVariant8 {
}
}

const variantMap: { [key: number]: new (container: HTMLDivElement) => any } = {
type ImageTrailConstructor =
| typeof ImageTrailVariant1
| typeof ImageTrailVariant2
| typeof ImageTrailVariant3
| typeof ImageTrailVariant4
| typeof ImageTrailVariant5
| typeof ImageTrailVariant6
| typeof ImageTrailVariant7
| typeof ImageTrailVariant8;

const variantMap: Record<number, ImageTrailConstructor> = {
1: ImageTrailVariant1,
2: ImageTrailVariant2,
3: ImageTrailVariant3,
Expand Down