-
Hi, When we're fetching statuses from the timeline, for example, we would like to import the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @dccarmo, thank you for posting a question Basically, all types are exported under import type { mastodon } from "masto";
function statusHandler(status: mastodon.v1.Status) {
//...
} I'm planning improve the document in the future for easily understanding this restriction. Hope this helps |
Beta Was this translation helpful? Give feedback.
Hi @dccarmo, thank you for posting a question
Basically, all types are exported under
mastodon
namespace due to the naming convention. This is because some entity has breaking changes between different versions. For example, if you want to useStatus
type:I'm planning improve the document in the future for easily understanding this restriction.
Hope this helps