import { CredentialsProvider } from "./credentialsProvider" ; export const isCredentialsProvider = ( variableToCheck ) : variableToCheck is CredentialsProvider => ( variableToCheck as CredentialsProvider ) ?. getCredentials !== undefined ;