Skip to content

Types for the OAuth2Server class does not include the options property #377

@wille

Description

@wille

Describe the bug

If you try to access the options set on a OAuth2Server instance when using TypeScript you'll get build errors.

The property exists on the class, just not in the type definition of the class.

To Reproduce

const options = { model } 
const server = new OAuth2Server(options)
server.options // Property 'options' does not exist on type 'OAuth2Server'. ts(2339)

Expected behavior

I'm building a library based on this project where I need to properly access options set on the provided OAuth2Server instance

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