Skip to content

Commit 5e6da03

Browse files
authored
breaking(types): remove deprecated types (#884)
1 parent 7655517 commit 5e6da03

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

src/core/atom.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ type OnMount<Update, Result extends void | Promise<void>> = <
6161
export type Atom<Value> = {
6262
toString: () => string
6363
debugLabel?: string
64-
/**
65-
* @deprecated Instead use `useAtom(atom, scope)`
66-
*/
67-
scope?: Scope
6864
read: Read<Value>
6965
}
7066

src/utils/atomFamily.ts

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Atom, WritableAtom } from 'jotai'
1+
import type { Atom } from 'jotai'
22

33
type ShouldRemove<Param> = (createdAt: number, param: Param) => boolean
44

@@ -13,22 +13,6 @@ export function atomFamily<Param, AtomType extends Atom<unknown>>(
1313
areEqual?: (a: Param, b: Param) => boolean
1414
): AtomFamily<Param, AtomType>
1515

16-
/**
17-
* @deprecated type (use atomFamily<Param, AtomType extends Atom<unknown>>)
18-
*/
19-
export function atomFamily<Param, Value, Update>(
20-
initializeAtom: (param: Param) => WritableAtom<Value, Update>,
21-
areEqual?: (a: Param, b: Param) => boolean
22-
): AtomFamily<Param, WritableAtom<Value, Update>>
23-
24-
/**
25-
* @deprecated type (use atomFamily<Param, AtomType extends Atom<unknown>>)
26-
*/
27-
export function atomFamily<Param, Value>(
28-
initializeAtom: (param: Param) => Atom<Value>,
29-
areEqual?: (a: Param, b: Param) => boolean
30-
): AtomFamily<Param, Atom<Value>>
31-
3216
export function atomFamily<Param, AtomType extends Atom<unknown>>(
3317
initializeAtom: (param: Param) => AtomType,
3418
areEqual?: (a: Param, b: Param) => boolean

0 commit comments

Comments
 (0)