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

getExtensionValue() return type is incorrect #4531

Open
sachin-sunny-rad opened this issue May 7, 2024 · 0 comments
Open

getExtensionValue() return type is incorrect #4531

sachin-sunny-rad opened this issue May 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@sachin-sunny-rad
Copy link

export function getExtensionValue(resource: any, ...urls: string[]): string | undefined 

getExtensionValue() says it will return string | undefined but it actually returns other types aswell:

bot.extension = [
      {
        url: 'url',
        valueBoolean: false,
      },
    ];
const val = getExtensionValue(bot, ...); <- returns boolean
bot.extension = [
      {
        url: 'url',
        valueString: "test",
      },
 ];
const val = getExtensionValue(bot, ...); <- returns string
@codyebberson codyebberson self-assigned this May 7, 2024
@codyebberson codyebberson added this to the May 31st, 2024 milestone May 7, 2024
@codyebberson codyebberson added the bug Something isn't working label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants