Skip to content

Commit

Permalink
feat(types) : base types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutesa-Cedric committed Sep 25, 2023
1 parent 31887ec commit 8358eeb
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@
"typecheck": "tsc --noEmit",
"prepare": "simple-git-hooks"
},
"dependencies": {
"react": "^18.2.0"
},
"devDependencies": {
"@antfu/eslint-config": "^1.0.0-beta.0",
"@antfu/ni": "^0.21.8",
"@antfu/utils": "^0.7.6",
"@types/node": "^20.6.3",
"@types/react": "^18.2.22",
"bumpp": "^9.2.0",
"eslint": "^8.49.0",
"eslint-define-config": "^1.23.0",
Expand Down
23 changes: 23 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file removed src/HOC/index.ts
Empty file.
3 changes: 3 additions & 0 deletions src/HOC/wrapper.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function Wrapper() {

}
32 changes: 32 additions & 0 deletions src/lib/Base.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
interface InOutEffect {
make: (leaving: boolean, props: any) => string
duration: number
delay: number
forever: boolean
count: number
style: object
reverse: boolean
}

interface Props {
collapse: boolean
collapseEl: React.ReactElement
cascade: boolean
wait: number
force: boolean
disabled: boolean
appear: boolean
enter: boolean
exit: boolean
fraction: number
refProp: string
innerRef: (node: HTMLElement | null) => void
onReveal: () => void
unmountOnExit: boolean
mountOnEnter: boolean
inEffect: InOutEffect
outEffect: InOutEffect | false
ssrReveal: boolean
collapseOnly: boolean
ssrFadeout: boolean
}
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"paths": {
"@/*": ["./src/*"]
},

"resolveJsonModule": true,
"esModuleInterop": true,
"strict": true,
Expand Down

0 comments on commit 8358eeb

Please sign in to comment.