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

Fix typing issues on sub fields of template #1

Closed
mathix420 opened this issue Jun 27, 2021 · 1 comment
Closed

Fix typing issues on sub fields of template #1

mathix420 opened this issue Jun 27, 2021 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mathix420
Copy link
Owner

Expected behavior

myCurrentTemplate.username.check('my-new-username');

Current behavior

import { VTemplateRow } from 'vuito/types';

(<VTemplateRow>myCurrentTemplate.username).check('my-new-username');

Line causing the issue (in src/template.ts)

export class Template {
  [key: string]: VTemplateRow | VTemplate['check'];
  // ...
}
@mathix420 mathix420 added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Jun 27, 2021
@mathix420
Copy link
Owner Author

Fxed on v2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant