Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to have types / intellisense? #276

Open
phillipmohr opened this issue Mar 11, 2024 · 0 comments
Open

How to have types / intellisense? #276

phillipmohr opened this issue Mar 11, 2024 · 0 comments

Comments

@phillipmohr
Copy link

phillipmohr commented Mar 11, 2024

Which SDK version are you using?

18.0.4 with VSCode

What's the issue?

I'm currently getting started with the facebook-nodejs-business-sdk. I'm trying to retrieve one campaign by ID.
However, I'm not having types/intellisense which makes it hard to consume the API as someone who doesn't have experience with it.

Steps/Sample code to reproduce the issue

This is my approach:

const campaign = await (new Campaign(campaignId)).get([
            'id',
            'name',
            'ads{adset_id,name,leadgen_forms{id,name}}',
        ]);

console.log('no intellisense for "id"', campaign.id)
console.log('no intellisense for "name"', campaign.name)

Observed Results:

  • What happened? This could be a description, log output, etc.
    no intellisense

Expected Results:

  • What did you expect to happen?
    having intellisense
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant