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

Function assertIsPromiseFsClient

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

Source from the content-addressed store, hash-verified

2215}
2216
2217function assertIsPromiseFsClient(fs: git.FsClient): asserts fs is git.PromiseFsClient {
2218 if (!('promises' in fs)) {
2219 throw new Error('Expected fs to be of PromiseFsClient');
2220 }
2221}
2222
2223export async function fetchRemoteBranches({ uri, credentialsId }: { uri: string; credentialsId?: string | null }) {
2224 const [mainRef] = await git.listServerRefs({

Callers 2

getCurrentBranchMethod · 0.85
continueMergeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected