Skip to content

Commit 396ff78

Browse files
committed
refactor: migrated from JavaScript to TypeScript (Part 2)
WIP, not done yet, build is currently broken
1 parent 519a484 commit 396ff78

File tree

12 files changed

+640
-638
lines changed

12 files changed

+640
-638
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- name: Setup Node.js with pnpm
5151
uses: actions/setup-node@v4
5252
with:
53-
node-version: 20
53+
node-version: 22
5454

5555
- name: Setup pnpm
5656
uses: pnpm/action-setup@v4

phpmyfaq/admin/assets/src/api/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export * from './category';
22
export * from './faqs';
3+
export * from './forms';
34
export * from './glossary';
45
export * from './group';
56
export * from './news';

phpmyfaq/admin/assets/src/api/upgrade.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@
1212
* @link https://www.phpmyfaq.de
1313
* @since 2024-05-30
1414
*/
15-
import { Response } from '../interfaces';
1615

17-
export const fetchHealthCheck = async (): Promise<Response | undefined> => {
16+
interface ResponseData {
17+
success?: string;
18+
warning?: string;
19+
error?: string;
20+
dateLastChecked?: string;
21+
version?: string;
22+
message?: string;
23+
}
24+
25+
export const fetchHealthCheck = async (): Promise<ResponseData | undefined> => {
1826
try {
1927
const response = await fetch(`./api/health-check`, {
2028
method: 'GET',

0 commit comments

Comments
 (0)