Skip to content

Commit df98f58

Browse files
authored
Merge pull request #27 from yassh/publishedAt-and-revisedAt-should-be-optional
MicroCMSDate型のpublishedAtとrevisedAtをオプショナルプロパティにする
2 parents a317163 + e0e76c2 commit df98f58

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ client.getList<Content>({ //other })
128128
* id: string;
129129
* createdAt: string;
130130
* updatedAt: string;
131-
* publishedAt: string;
132-
* revisedAt: string;
131+
* publishedAt?: string;
132+
* revisedAt?: string;
133133
* text: string; // This is Content type.
134134
* }
135135
*/
@@ -140,8 +140,8 @@ client.getListDetail<Content>({ //other })
140140
* {
141141
* createdAt: string;
142142
* updatedAt: string;
143-
* publishedAt: string;
144-
* revisedAt: string;
143+
* publishedAt?: string;
144+
* revisedAt?: string;
145145
* text: string; // This is Content type.
146146
* }
147147
*/

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export interface MicroCMSContentId {
3939
export interface MicroCMSDate {
4040
createdAt: string;
4141
updatedAt: string;
42-
publishedAt: string;
43-
revisedAt: string;
42+
publishedAt?: string;
43+
revisedAt?: string;
4444
}
4545

4646
/**

0 commit comments

Comments
 (0)