Refactor <HashtagHeader>
to TypeScript (#33096)
This commit is contained in:
parent
a1143c522b
commit
25387dc423
10 changed files with 238 additions and 237 deletions
7
app/javascript/mastodon/models/tags.ts
Normal file
7
app/javascript/mastodon/models/tags.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
import type { ApiHashtagJSON } from 'mastodon/api_types/tags';
|
||||
|
||||
export type Hashtag = ApiHashtagJSON;
|
||||
|
||||
export const createHashtag = (serverJSON: ApiHashtagJSON): Hashtag => ({
|
||||
...serverJSON,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue