Skip to content

index.d.ts doesn't have getAllFlags #38

Description

@ravindra-dyte

index.d.ts doesn't have getAllFlags method/function which results in linting errors when using typescript.

const flagsmith = useFlagsmith();

flagsmith.getAllFlags() // Error here: TS2339 Property 'getAllFlags' does not exist on type 'Flagsmith'.
(flagsmith as any).getAllFlags() // This is the temp fix for now

Ideally index.d.ts should have getAllFlags method in schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions