Fix type errors

This commit is contained in:
2022-05-20 00:50:34 +03:00
parent 0601524411
commit 158d0efd40
4 changed files with 9 additions and 7 deletions

View File

@@ -1,10 +1,11 @@
import { createViewportObserver } from '@solid-primitives/intersection-observer';
import { useStore } from '../../store/index';
import type { Store } from '../../store/index';
import styles from './Projects.module.css';
export default () => {
const [, { setVisibleChapter }] = useStore();
const [, { setVisibleChapter }] = useStore() as Store;
const [observer] = createViewportObserver({threshold: 0.9});
return (