import { Type , ts } from "ts-morph" ; export default function isTypePromise ( type ) { return ( type . isObject ( ) && type . getTypeArguments ( ) . length === 1 && type . getSymbol ( ) && type . getSymbol ( ) ! . getName ( ) === "Promise" ) ; }