-
Notifications
You must be signed in to change notification settings - Fork 81
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
refactor: split runtime types #213
Conversation
e046cc1
to
6cbf56b
Compare
@@ -19,7 +51,7 @@ export default defineNuxtModule<StrapiOptions>({ | |||
version: 'v4', | |||
cookie: {} | |||
}, | |||
setup (options: StrapiOptions, nuxt: Nuxt) { | |||
setup (options: ModuleOptions, nuxt: Nuxt) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip: You don't need types here. They are already inferred by defineNuxtModule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't know that, should we remove it then?
Thanks a lot @pi0 🙂 |
* @type string | ||
* @example 'v3' | ||
*/ | ||
version?: 'v4' | 'v4' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @pi0
Shouldn't this be 'v4' | 'v3'
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome :)
Types of changes
Description
Refactor runtime types so they are bundled with
mkdist
. resolves #211.Checklist: