Skip to content

Commit e993bb1

Browse files
committed
apiTypes: Make unused User.profile_data too narrow instead of too wide.
We don't have a proper type annotation for this written down. But we don't currently use it at all, either, so that's basically fine. Just flip the type annotation so that if we do start using it we'll get an error reminding us to go find the actual type, rather than silently write code with type errors and not get them flagged.
1 parent 9afe39d commit e993bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/apiTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export type User = {
222222
full_name: string,
223223
is_admin: boolean,
224224
is_bot: boolean,
225-
profile_data?: Object,
225+
profile_data?: empty, // TODO describe actual type
226226
timezone: string,
227227
user_id: number,
228228
};

0 commit comments

Comments
 (0)