-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Typescript typings #1053
Typescript typings #1053
Conversation
Thanks! Can we start with fixing the linting issues please? 😇 |
How do you enable intellisense for these issues? I do have the ESLint extension installed |
We’re using XO, you’ll need the linter plugin, here it is for VS Code: |
i guess we're ready to go now. |
hi @cossssmin any updates? |
Hey, sorry for the delay, I've been a little busy with life offline but I'll try to go through it this week. Thanks 🙏 |
Actually on the
Then add it to the
... I'm not seeing it autocomplete/suggested when doing Ctrl+Space? I'm sorry, I have no experience with TS this is all new to me. |
Nevermind, need to import the correct interface, going through it now 👍
|
yeah, you were importing the whole module instead of the interface. I made sure to have the same interface name as tailwind's. |
I did that as well but i removed it later, it seemed like a waste of time
to me because I just copied text from docs which the user should read.
That's a great option but imo it's just a waste of time to maintain that
along with the upcoming changes (it adds more work for a developer to get a
release with a lot of changes out fast). Also, it's @default not
@DefaultValue microsoft/tsdoc#27
…On Sun, 3 Sept 2023, 16:33 Cosmin Popovici, ***@***.***> wrote:
Working on adding JSDoc to everything so you can see a short description
in the suggestions dropdown or when hovering over a key. What do you think
of using @DefaultValue like this, to let the user know what the default
is in Maizzle?
interface LayoutsConfig {
/** * Name of the fill tag, where the content will be injected. * This is typically used in a Template file, to extend a Layout. * @DefaultValue `'block'` */
fillTagName?: string;}
—
Reply to this email directly, view it on GitHub
<#1053 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZRZB4QDYH76CFQZ4B4OQTXYRPX5ANCNFSM6AAAAAA3YV54WE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
add new types, add jsdoc, fix typos
Made some changes:
The file is pretty big now so I'm thinking of splitting it up into multiple files, what do you think? We can release |
Yeah, that seems good.
…On Sun, 3 Sept 2023, 21:55 Cosmin Popovici, ***@***.***> wrote:
Made some changes:
- added new types (i.e. for query-string)
- created some new intefaces for config types
- added JSDoc so the IDE shows a description and defaults/examples
The file is pretty big now so I'm thinking of splitting it up into
multiple files, what do you think? We can release v4.6.0 as it is now, we
can refactor/split it later.
—
Reply to this email directly, view it on GitHub
<#1053 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASZRZB22QVTAVUXISB4EFETXYSVQDANCNFSM6AAAAAA3YV54WE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Cool, merging and will release |
From: #1052
Please suggest changes (if any)
All this has been taken from the documentation.