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

can replace this with equivalent in object methods #181

Open
samualtnorman opened this issue May 5, 2024 · 1 comment
Open

can replace this with equivalent in object methods #181

samualtnorman opened this issue May 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@samualtnorman
Copy link
Owner

export default () => ({
	count: 0,
	increment() {
		this.count++
	}
})

can become

function () {
	let _THIS_
	
	return _THIS_ = {
		count: 0,
		increment() {
			_THIS_.count++
		}
	}
}
@samualtnorman samualtnorman added the enhancement New feature or request label May 6, 2024
@samualtnorman
Copy link
Owner Author

this would get me closer to importing valibot

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

1 participant