MCPcopy Create free account
hub / github.com/Kong/insomnia / assertIsPromiseFsClient

Function assertIsPromiseFsClient

packages/insomnia/src/sync/git/git-vcs.ts:2321–2325  ·  view source on GitHub ↗
(fs: git.FsClient)

Source from the content-addressed store, hash-verified

2319}
2320
2321function assertIsPromiseFsClient(fs: git.FsClient): asserts fs is git.PromiseFsClient {
2322 if (!('promises' in fs)) {
2323 throw new Error('Expected fs to be of PromiseFsClient');
2324 }
2325}
2326
2327export async function fetchRemoteBranches({ uri, credentialsId }: { uri: string; credentialsId?: string | null }) {
2328 const [mainRef] = await git.listServerRefs({

Callers 2

getCurrentBranchMethod · 0.85
continueMergeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected