-
Notifications
You must be signed in to change notification settings - Fork 1
fix(functions): definer gets single type for config argument #69
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
fix(functions): definer gets single type for config argument #69
Conversation
this helps typedoc generate nicer documentation
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
📚 TypeDoc Generation Result✅ TypeDoc generated successfully!
The TypeDoc JSON file has been generated and validated. All documentation scripts completed successfully. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
makes it render at the top
src/definers/functions.ts
Outdated
| let {name, src, event, timeout, memory, env, type, timezone, runtime} = functionConfig | ||
| if (!type) type = 'sanity.function.cron' | ||
| export function defineScheduleFunction(functionConfig: BlueprintScheduleFunctionConfig): BlueprintScheduleFunctionResource { | ||
| const {name, src, event, timeout, memory, env, timezone, runtime} = functionConfig |
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.
This needs a robot token as well.
|
@macdonst thanks for catching that! So I changed it so that all specific definers like |
|
@tbeseda it wasn't and that was my oversight. |
need to merge #70 firstnice.
becomes
Also I made the "basic example" for each definer part of the description so that it renders at the top instead of below the lengthy config parameters: