import { IntrospectionEngine } from "@prisma/sdk" ; export default class Default { private readonly inspector = new IntrospectionEngine ( ) ; async inspect ( schema ) { const dm = await this . inspector . introspect ( schema ) ; return dm . datamodel ; } close ( ) { return this . inspector . stop ( ) ; } } export interface Inspector { inspect ( schema ) : Promise < string > ; close ( ) : void ; }