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

Use generics #545

Open
Ctepan opened this issue May 18, 2023 · 1 comment
Open

Use generics #545

Ctepan opened this issue May 18, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Ctepan
Copy link

Ctepan commented May 18, 2023

https://blog.vuejs.org/posts/vue-3-3#generic-components

For example, now STable for data prop has type Record<string, unknown>[], so row data passed with emit or slot-scope now has this type, instead of origin type of provided data.

@Ctepan Ctepan added the enhancement New feature or request label May 18, 2023
@VladislavPopovSR
Copy link

VladislavPopovSR commented Jun 17, 2024

Updating to 0.13.9+ version causes an error with InstanceType . Install vue-component-type-helpers and use ComponentExposed instead:

import type { ComponentExposed } from 'vue-component-type-helpers';

const table = ref<ComponentExposed<typeof STable> | null>(null);

Formatter property and similar are left to be implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants