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

Initializers are not allowed in ambient contexts. #55

Open
cjmling opened this issue Apr 10, 2024 · 2 comments
Open

Initializers are not allowed in ambient contexts. #55

cjmling opened this issue Apr 10, 2024 · 2 comments

Comments

@cjmling
Copy link
Contributor

cjmling commented Apr 10, 2024

https://stackoverflow.com/a/53139356/507203

image

image

@cjmling
Copy link
Contributor Author

cjmling commented Apr 10, 2024

I guess it should be

private useFormat?: boolean
private useFormattedDate?: boolean

And only get default sets in constructor.

} else if (typeof option === 'string') {
      this.sheetName = option
      this.sheetId = this.sheetId || null
      this.useFormattedDate = false   <===
      this.useFormat = false <===
} else if (typeof option === 'object') {  

@fureweb-com
Copy link
Owner

Thanks for letting me know!
I've been on vacation and was late checking in.

I'll fix the offending type definition part soon and release it in the next version.

Thanks :)

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

No branches or pull requests

2 participants