(type: TypeWithNullableInfo)
| 1 | import type { TypeWithNullableInfo } from './TypeSchema'; |
| 2 | |
| 3 | export function findSerializerModule(type: TypeWithNullableInfo) { |
| 4 | const module = type.modulePath; |
| 5 | const importPath = module.split('/'); |
| 6 | importPath.splice(2, 0, 'generated'); |
| 7 | importPath[importPath.length - 1] = `${type.typeAsString}Serializer`; |
| 8 | return importPath.join('/'); |
| 9 | } |
no test coverage detected