-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Not able to add default value #35
Comments
having the same issue |
having same issue |
Hi there, Just a heads up, using as any is a quick fix and might not be the best long-term solution, but it could help you move forward for now. Hope this helps! |
Hey all, I had the same issue but it went away when I provided a type to the
export interface Post {
slug: string
created?: Date
language: 'nl' | 'en'
tags: Array<string>
title: string
content: string
} I don't really understand how it works as I'm not very proficient with TypeScript, but I thought I'd share it with you. |
When trying to add default value it's giving typescript error.
The text was updated successfully, but these errors were encountered: