fix: strict custom view paths (#12968)

This commit is contained in:
Jacob Fletcher
2025-06-29 14:20:54 -04:00
committed by GitHub
parent 16f5538e12
commit cfc7adcbc5
5 changed files with 81 additions and 38 deletions

View File

@@ -164,12 +164,12 @@ describe('Types testing', () => {
describe('views', () => {
test('default view config', () => {
expect<DefaultDocumentViewConfig>().type.not.toBeAssignableWith<{
path: string
path: `/${string}`
}>()
expect<CustomDocumentViewConfig>().type.toBeAssignableWith<{
Component: string
path: string
path: `/${string}`
}>()
})
})