Sam Parton

Results 12 comments of Sam Parton

I like this idea... this would probably be a better solution to my idea for include/exclude to find types, since types are just an easy way to find a module(with...

Oh yeah definitely it is 😅 It makes perfect sense and I love the idea, this idea is kind of the reason I came up with the "includes/excludes" stuff, because...

@sdecri thank you sir. I spent 6 hours tearing my hair out tonight about why my stuff wont work.... I actually use yarn but had the same issue.... yalc fixed...

I find this so cool :D SQL to AST: ![CleanShot 2022-09-27 at 18 14 11](https://user-images.githubusercontent.com/4105581/192592622-b5b66d91-4cde-4f15-a099-6a3e462d9019.png) Running the result from that above endpoint back through: ![CleanShot 2022-09-27 at 18 14 54](https://user-images.githubusercontent.com/4105581/192592739-ec58d07a-9141-4785-8e07-3ff8714f76e5.png)

Output of /structure endpoint is like: ![CleanShot 2022-09-28 at 18 11 35](https://user-images.githubusercontent.com/4105581/192846229-35b9a807-e049-4d0c-b1dc-f415e5963d80.png) Record types are turned into a object, so we don't have to parse a string of ``record(TYPE_NAME)``

> @iDevelopThings For structure export: > > 1. This is only for the selected DB right!? > 2. I prefere the type strings for record then the type is always...

Okay I've removed that nested object: ![CleanShot 2022-09-28 at 21 59 19](https://user-images.githubusercontent.com/4105581/192887611-3e4ed7d0-74b9-41fb-9cd5-4b3de5c43032.png) Made another change too, which will remove the way arrays are handled, example: ![CleanShot 2022-09-28 at 22 00...

@tobiemh have you had a look through this by any chance? :) I just finished building this package: https://github.com/iDevelopThings/surrealdb-type-generator So we can generate TS definitions for our tables

Yeah that's no problem, at-least if there's something in the mean-time(in the case that schemas/definitions would change it a tonne), we can all use it, then when those changes come,...

> [This article](https://charliejoseph.com/blog/migrating-a-laravel-jetstream-app-from-mix-webpack-to-vite) convert webpack to Vite but it didn't take typescript in the consider. Forgive me. I'd like to make PR but I'm still newbie in this matter. Hey!...