Skip to content

Commit

Permalink
Fix Typescript typo
Browse files Browse the repository at this point in the history
Summary: Fix typo in Typescript `Readonly<>` modifier

Reviewed By: davidmccabe

Differential Revision: D23708492

fbshipit-source-id: 13fdb5f1509cb104e764e5930aa2e3aeddf1fe3c
  • Loading branch information
drarmstr authored and facebook-github-bot committed Sep 15, 2020
1 parent 4d52886 commit 100ef91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescript/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export function isRecoilValue(val: unknown): val is RecoilValue<any>; // eslint-
// bigint not supported yet
type Primitive = undefined | null | boolean | number | symbol | string;

export type SerializableParam = Primitive | ReadonlyArray<SerializableParam> | ReadOnly<{[key: string]: SerializableParam}>;
export type SerializableParam = Primitive | ReadonlyArray<SerializableParam> | Readonly<{[key: string]: SerializableParam}>;

export interface AtomFamilyOptions<T, P extends SerializableParam> {
key: NodeKey;
Expand Down

0 comments on commit 100ef91

Please sign in to comment.