2026年10月23日の日記 📖
フルちゃん
今日のメモ
# 今日やったこと
ミニアプリの復習
# 今日理解できたこと
```
const { post } = attempt;
```
const post = attempt.post;と同じ
attemptはMyAttempt型になっていて
```
export type AttemptPostSummary = {
id: number;
title: string | null;
image_public_id: string | null;
discarded: boolean;
};
export type MyAttempt = Attempt & { post: AttemptPostSummary };
```
{ } の中にキーの名称であるpostを書くことで、キーの型であるAttemptPostSummary型のデータ要素 (オブジェクト) を取得できる
# まだ理解できていないこと
# 次にやること
ミニアプリの復習(残り)
# 感想など
明日も頑張っていきたい!
ミニアプリの復習
# 今日理解できたこと
```
const { post } = attempt;
```
const post = attempt.post;と同じ
attemptはMyAttempt型になっていて
```
export type AttemptPostSummary = {
id: number;
title: string | null;
image_public_id: string | null;
discarded: boolean;
};
export type MyAttempt = Attempt & { post: AttemptPostSummary };
```
{ } の中にキーの名称であるpostを書くことで、キーの型であるAttemptPostSummary型のデータ要素 (オブジェクト) を取得できる
# まだ理解できていないこと
# 次にやること
ミニアプリの復習(残り)
# 感想など
明日も頑張っていきたい!
visibility
公開