File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
spec/example/test/files/multifile Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def self.imports_to_code(imports)
1010 import . type . try ( :anchor_schema_name ) || import . type . name
1111 end . join ( "," )
1212
13- "import { #{ named_imports } } from \" ./#{ file_name [ ..-4 ] } \" ;"
13+ "import type { #{ named_imports } } from \" ./#{ file_name [ ..-4 ] } \" ;"
1414 end . join ( "\n " ) + "\n "
1515 end
1616
Original file line number Diff line number Diff line change 11// START AUTOGEN
22
3- import { Post } from "./Post" ;
4- import { User } from "./User" ;
3+ import type { Post } from "./Post" ;
4+ import type { User } from "./User" ;
55
66type Model = {
77 id : number ;
Original file line number Diff line number Diff line change 11// START AUTOGEN
22
3- import { Maybe } from "./shared" ;
3+ import type { Maybe } from "./shared" ;
44
55type Model = {
66 id : number ;
Original file line number Diff line number Diff line change 11// START AUTOGEN
22
3- import { Comment } from "./Comment" ;
4- import { User } from "./User" ;
3+ import type { Comment } from "./Comment" ;
4+ import type { User } from "./User" ;
55
66type Model = {
77 id : number ;
Original file line number Diff line number Diff line change 11// START AUTOGEN
22
3- import { UserRole } from "./shared" ;
4- import { Comment } from "./Comment" ;
5- import { Post } from "./Post" ;
3+ import type { UserRole } from "./shared" ;
4+ import type { Comment } from "./Comment" ;
5+ import type { Post } from "./Post" ;
66
77type Model = {
88 id : number ;
You can’t perform that action at this time.
0 commit comments