Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
n1lsqn committed Feb 8, 2024
1 parent d527793 commit 9b0f63c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"test": "jest"
},
"dependencies": {
"@types/accurate-interval": "1.0.3",
"@types/chalk": "2.2.0",
"@types/lokijs": "1.5.14",
"@types/node": "20.11.5",
Expand Down
4 changes: 2 additions & 2 deletions src/modules/checkVersion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ export default class extends Module {
}

private getVersion = (): Promise<Version> => {
return this.ai.api('meta').then(meta => {
return this.ai.api('meta').then((meta: any) => {
return {
server: meta.version,
client: meta.clientVersion
};
});
};

private mfmVersion = (v): string => {
private mfmVersion = (v: string): string => { // Specify the type of 'v' as 'string'
if (v == null) return v;
return v.match(/^\d+\.\d+\.\d+$/) ? `[${v}](https://github.com/syuilo/misskey/releases/tag/${v})` : v;
};
Expand Down

0 comments on commit 9b0f63c

Please sign in to comment.