Skip to content

Commit

Permalink
Remove type-fest
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbouchenoire committed Dec 31, 2021
1 parent c3dae1f commit 2f6852f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
"postcss-nesting": "^10.1.0",
"stylelint": "^14.2.0",
"tailwindcss": "^3.0.7",
"type-fest": "^2.8.0",
"write-json-file": "^5.0.0"
}
}
12 changes: 8 additions & 4 deletions packages/site/src/transitions.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import { Spring } from "framer-motion"
import { SetRequired } from "type-fest"

type DurationSpring = SetRequired<Spring, "duration">
type DurationSpring = Spring & {
/**
* The duration of the animation.
*/
duration: number
}

export const springy: Spring = {
export const springy: DurationSpring = {
type: "spring",
duration: 0.4,
bounce: 0.08
}

export const springier: Spring = {
export const springier: DurationSpring = {
type: "spring",
duration: 0.4,
bounce: 0.2
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11261,11 +11261,6 @@ type-fest@^0.8.0, type-fest@^0.8.1:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==

type-fest@^2.8.0:
version "2.8.0"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.8.0.tgz#39d7c9f9c508df8d6ce1cf5a966b0e6568dcc50d"
integrity sha512-O+V9pAshf9C6loGaH0idwsmugI2LxVNR7DtS40gVo2EXZVYFgz9OuNtOhgHLdHdapOEWNdvz9Ob/eeuaWwwlxA==

typedarray-to-buffer@^3.1.5:
version "3.1.5"
resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080"
Expand Down

0 comments on commit 2f6852f

Please sign in to comment.