Howard Chiam

Results 67 comments of Howard Chiam

May be interesting: https://hackernoon.com/property-based-testing-4330e3e77381?gi=af3200a2b75c

Here's a rather minimal example on codesandbox: https://codesandbox.io/s/github/hchiam/learning-open-props Or on surge: https://learning-open-props.surge.sh Built from: https://github.com/hchiam/learning-open-props (automatically linted with `es-check` for es5)

Here's a repo I used to test autocomplete and imports for this PR: https://github.com/hchiam-test-org/svelte-kit-typescript-open-props2/blob/main/my-app/package.json#L37 (WIP) cf. https://github.com/argyleink/open-props/pull/223#issuecomment-1126590623

Interesting! I might look into debugging this and/or helping out with TS typings later this week.

OK, I think I've got typing to work on my fork of open-props. PR forthcoming.

Maybe make `` more like ``? https://codepen.io/hchiam/pen/dyZQbqb Since `` typically have a ``, then `` should be styled more like ``?

This PR #223 seems to fix the ts(2307) Error mentioned in issue #199 and the issue with typing `OpenProps`, as tested in my test repo: https://github.com/hchiam/svelte-kit-typescript-open-props/commit/1f8a3612d212b534899a17b610e7e6a66af97ed1 So instead of `import...

this PR is still a WIP - TODO: figure out why both array and dot notations are working in autocomplete.test.ts but not in the [test svelte repo](https://github.com/hchiam/svelte-kit-typescript-open-props/blob/main/my-app/src/routes/index.svelte)

https://github.com/argyleink/open-props/pull/223/commits/31aa59192bfbdae2ac22ab4eb7e0161a0c1aba83 A thing to consider is that JS props can't end with the `@` symbol, so the `microbundle` approach in PR #225 will need to be modified to auto-generate `.animationFadeInAt`...