import { Type , TypeChecker } from "typescript" ; import { isSimpleType , SimpleType } from "../simple-type" ; import { simpleTypeToString } from "./simple-type-to-string" ; param simpleType export function typeToString ( simpleType ) ; export function typeToString ( type , checker ) ; export function typeToString ( type , checker ? ) { if ( isSimpleType ( type ) ) { return simpleTypeToString ( type ) ; } return checker ! . typeToString ( type ) ; }