Skip to content
New issue

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

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

Already on GitHub? # to your account

Option keys aren't optional with TypeScript #25

Closed
tolgaerdonmez opened this issue May 14, 2020 · 1 comment
Closed

Option keys aren't optional with TypeScript #25

tolgaerdonmez opened this issue May 14, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@tolgaerdonmez
Copy link

export interface Options {
    pickerId?: string;
    families?: string[];
    categories?: Category[];
    scripts?: Script[];
    variants?: Variant[];
    filter?: (font: Font) => boolean;
    limit?: number;
    sort?: SortOption;
}

it would be better to set options to nullable, because it complains when using the module in typescript
image

@samuelmeuli samuelmeuli added the bug Something isn't working label May 16, 2020
@samuelmeuli samuelmeuli changed the title [REQUEST] FontPicker's OPTION types Option keys aren't optional with TypeScript May 16, 2020
@samuelmeuli
Copy link
Owner

Thanks for reporting! This should be fixed in v3.5.1.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants