3
3
exports [` generate-types: references with embedded schema 1` ] = `
4
4
"// NOTE This file is auto-generated by Contentlayer
5
5
6
- import type { Markdown , MDX , ImageFieldData } from 'contentlayer/core'
6
+ import type { Markdown , MDX , ImageFieldData , IsoDateTimeString } from 'contentlayer/core'
7
7
import * as Local from 'contentlayer/source-files'
8
8
9
9
export { isType } from 'contentlayer/client'
10
10
11
- // export type Image = string
12
- export type { Markdown , MDX }
11
+ export type { Markdown , MDX , ImageFieldData , IsoDateTimeString }
13
12
14
13
/** Document types */
15
14
export type Person = {
@@ -79,13 +78,12 @@ export type NestedTypeMap = {
79
78
exports [` generate-types: simple schema 1` ] = `
80
79
"// NOTE This file is auto-generated by Contentlayer
81
80
82
- import type { Markdown , MDX , ImageFieldData } from 'contentlayer/core'
81
+ import type { Markdown , MDX , ImageFieldData , IsoDateTimeString } from 'contentlayer/core'
83
82
import * as Local from 'contentlayer/source-files'
84
83
85
84
export { isType } from 'contentlayer/client'
86
85
87
- // export type Image = string
88
- export type { Markdown , MDX }
86
+ export type { Markdown , MDX , ImageFieldData , IsoDateTimeString }
89
87
90
88
/** Document types */
91
89
export type TestPost = {
@@ -96,7 +94,7 @@ export type TestPost = {
96
94
/** The title of the post */
97
95
title : string
98
96
/** The date of the post */
99
- date : string
97
+ date : IsoDateTimeString
100
98
/** Markdown file body */
101
99
body : Markdown
102
100
slug : string
@@ -145,13 +143,12 @@ export type NestedTypeMap = {
145
143
exports [` generate-types: simple schema with optional fields 1` ] = `
146
144
"// NOTE This file is auto-generated by Contentlayer
147
145
148
- import type { Markdown , MDX , ImageFieldData } from 'contentlayer/core'
146
+ import type { Markdown , MDX , ImageFieldData , IsoDateTimeString } from 'contentlayer/core'
149
147
import * as Local from 'contentlayer/source-files'
150
148
151
149
export { isType } from 'contentlayer/client'
152
150
153
- // export type Image = string
154
- export type { Markdown , MDX }
151
+ export type { Markdown , MDX , ImageFieldData , IsoDateTimeString }
155
152
156
153
/** Document types */
157
154
export type TestPost = {
@@ -162,7 +159,7 @@ export type TestPost = {
162
159
/** The title of the post */
163
160
title : string
164
161
/** The date of the post */
165
- date ?: string | undefined
162
+ date ?: IsoDateTimeString | undefined
166
163
/** Markdown file body */
167
164
body : Markdown
168
165
slug : string
0 commit comments