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

TypeScript typings issue in TributeOptions<T> #628

Open
vadim17 opened this issue Mar 3, 2021 · 0 comments
Open

TypeScript typings issue in TributeOptions<T> #628

vadim17 opened this issue Mar 3, 2021 · 0 comments

Comments

@vadim17
Copy link

vadim17 commented Mar 3, 2021

Hi,

There is an issue with TypeScript typings here: https://github.com/zurb/tribute/blob/master/tributejs.d.ts#L94

export type TributeOptions<T> =
  | TributeCollection<T>
  | {
      // pass an array of config objects
      collection: Array<TributeCollection<{ [key: string]: any }>>;
    };

As you can see it uses T generic for the single collection TributeCollection, but another one for the array of collections Array<TributeCollection<{ [key: string]: any }>>.

Thanks,
Vadim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant