Skip to content

Commit 9f0eaaf

Browse files
committed
update node
1 parent ff0bed1 commit 9f0eaaf

75 files changed

Lines changed: 7958 additions & 5351 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Setup Node
4949
uses: actions/setup-node@v4
5050
with:
51-
node-version: "20"
51+
node-version: "latest"
5252
cache: ${{ steps.detect-package-manager.outputs.manager }}
5353

5454
- name: Setup Pages

@types/BranchMachine.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
type Transition<T, K> = (input: T, event: K, computed: { [key: string]: any }) => T;
2+
3+
type BranchMachine<T, K, Switch> = {
4+
eval: (input: T) => Switch;
5+
description?: string;
6+
compute?: (input: T, event: K) => { [key: string]: any }
7+
on: {
8+
value: Switch | ((switchValue: Switch, input: T) => boolean);
9+
description?: string;
10+
log?: (state?: T) => string;
11+
do: Transition<T, K> | BranchMachine<T, K, any>;
12+
}[];
13+
default?: Transition<T, K> | BranchMachine<T, K, any>
14+
};

types/blog.d.ts renamed to @types/blog.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type Post = {
99
id: string;
1010
slug: string;
1111
title: string;
12+
image?: string
1213
metadata: {
1314
published_date: string;
14-
content: string;
1515
hero?: {
1616
imgix_url?: string;
1717
};
@@ -30,6 +30,7 @@ type Post = {
3030
title: string;
3131
}[];
3232
};
33+
content: string;
3334
}
3435

3536
type Author = {
Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
type Factory<T extends object> = {
2-
[key in keyof T]: T[key];
2+
[key in keyof T]: T[key]; // Include the properties of T
3+
} & {
4+
// Dynamically add a setter for each key
5+
[key in keyof T as `set${Capitalize<string & key>}`]: (
6+
value: T[key] | ((prev: T[key]) => T[key])
7+
) => void;
38
} & {
49
get: () => T
5-
set: (key: keyof T, value: T[key]) => void;
10+
set: <K extends keyof T>(key: K, value: T[K] | ((prev: T[K]) => T[K])) => void;
611
};
712

13+
814
type ComponentAction = 'change' | 'submit'
915

1016
type DefaultComponentProps<T> = {
@@ -29,4 +35,16 @@ type Percentage = `${number}%`;
2935
type Coordinate = {
3036
x: number;
3137
y: number;
32-
}
38+
}
39+
40+
type IconStyle = {
41+
width?: number
42+
height?: number,
43+
backgroundColor?: string,
44+
}
45+
46+
type IconListeners<T extends HTMLElement = HTMLElement> = {
47+
onClick?: React.MouseEventHandler<SVGSVGElement>
48+
onMouseEnter?: React.MouseEventHandler<SVGSVGElement>
49+
onMouseLeave?: React.MouseEventHandler<SVGSVGElement>
50+
};
File renamed without changes.

types/table.d.ts renamed to @types/table.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type TableStyle = {
1414
cellMinWidth?: number;
1515
}
1616

17-
type MenuState = "filter" | "sorts" | "columnVisibility" | "download" | "settings" | "search" | undefined
17+
type MenuState = "filter" | "sorts" | "columnVisibility" | "download" | "settings" | "search" | null
1818

1919
type AttrProps = {
2020
name: string,
@@ -39,3 +39,5 @@ type AttrProps = {
3939
[tag: string]: string
4040
}
4141
}
42+
43+
type Order = "asc" | "desc" | "none"
File renamed without changes.
File renamed without changes.

app/about/chocomint/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
import { useEffect } from "react"
44

5-
export default function Chocomint() {
5+
export default function GetKey() {
66
useEffect(() => {
7-
window.localStorage.setItem("timeKeyGot", Date.now().toString())
7+
window.localStorage.setItem("timeKeyGot", String(Date.now()))
88
})
99
return (
1010
<div>

0 commit comments

Comments
 (0)