Title: Extension Methods are not present on the object · Issue #2011 · nodegit/nodegit · GitHub
Open Graph Title: Extension Methods are not present on the object · Issue #2011 · nodegit/nodegit
X Title: Extension Methods are not present on the object · Issue #2011 · nodegit/nodegit
Description: 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 meth...
Open Graph Description: 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 obje...
X Description: 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 ...
Opengraph URL: https://github.com/nodegit/nodegit/issues/2011
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extension Methods are not present on the object","articleBody":"## System information\r\n - node version:\r\n - npm or yarn version:\r\n - OS/version/architecture:\r\n - Applicable nodegit version:\r\n\r\n```\r\nv22.12.0\r\n10.9.0\r\nlinux\r\n6.10.14-linuxkit\r\narm64\r\n```\r\n\r\nI'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)\r\n\r\n``` typescript\r\nimport Git from 'nodegit'\r\n\r\nexport async function run(): Promise\u003cvoid\u003e {\r\n\r\n const tag = `v${version}`\r\n\r\n const repo = await Git.Repository.open('./repo/.git')\r\n // Here I cannot do repo.getRemote('origin') as I get TypeError: repo.getRemote is not a function\r\n const remote = await Git.Remote.lookup(repo, 'origin')\r\n\r\n}\r\n```\r\n","author":{"url":"https://github.com/jaredlueck","@type":"Person","name":"jaredlueck"},"datePublished":"2025-01-15T16:43:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2011/nodegit/issues/2011"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2be3fc56-7b1d-35a7-f995-da721ecf4ea6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABAE:2ACEE1:172CCA4:1F4962B:697015FA |
| html-safe-nonce | 6ceb717746c507a67ae256cabf3334b44543deaebea8ae9c043186a8ac933419 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkFFOjJBQ0VFMToxNzJDQ0E0OjFGNDk2MkI6Njk3MDE1RkEiLCJ2aXNpdG9yX2lkIjoiODE2NTQ5ODkyNDc4MTU0MDg1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0c12efcd55da26388e2762accf890189b430b20aeaa97a2629e5d628e426dcd2 |
| hovercard-subject-tag | issue:2790328430 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/2011/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96c093333f30a05a5d6bb7e73680d12ecb0085d93adacd8756c5cce1c561df02/nodegit/nodegit/issues/2011 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96c093333f30a05a5d6bb7e73680d12ecb0085d93adacd8756c5cce1c561df02/nodegit/nodegit/issues/2011 |
| og:image:alt | 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 obje... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaredlueck |
| hostname | github.com |
| expected-hostname | github.com |
| None | 043a09521e81f00c45482046b3f38390b8b292cf9a86ad665a632633a072c05c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 98881eadf8ae73000970c42161c094b0809b1330 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width