File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,12 @@ function buildFieldProperty(
244244 break ;
245245 }
246246
247+ case "Table" : {
248+ code = addLine ( `${ name } : prismic.TableField;` , code ) ;
249+
250+ break ;
251+ }
252+
247253 case "Text" : {
248254 code = addLine ( `${ name } : prismic.KeyTextField;` , code ) ;
249255
Original file line number Diff line number Diff line change 1+ import { it } from "vitest" ;
2+
3+ import { expectToHaveDocs } from "./__testutils__/expectToHaveDocs" ;
4+ import { expectToHaveFieldType } from "./__testutils__/expectToHaveFieldType" ;
5+
6+ it ( "is correctly typed" , ( ctx ) => {
7+ expectToHaveFieldType ( ctx . mock . model . table ( ) , "prismic.TableField" ) ;
8+ } ) ;
9+
10+ it ( "is correctly documented" , ( ctx ) => {
11+ expectToHaveDocs ( ctx . mock . model . table ( ) ) ;
12+ } ) ;
You can’t perform that action at this time.
0 commit comments