Skip to content

Extension Methods are not present on the object #2011

Description

@jaredlueck

System information

  • node version:
  • npm or yarn version:
  • OS/version/architecture:
  • Applicable nodegit version:
v22.12.0
10.9.0
linux
6.10.14-linuxkit
arm64

I'm using typescript, when I examine the object none of the javascript extension methods defined in repository.js appear to actually be present on the repo object (e.g. getRemote)

import Git from 'nodegit'

export async function run(): Promise<void> {

  const tag = `v${version}`

  const repo = await Git.Repository.open('./repo/.git')
  // Here I cannot do repo.getRemote('origin') as I get TypeError: repo.getRemote is not a function
  const remote = await Git.Remote.lookup(repo, 'origin')

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions