-
Notifications
You must be signed in to change notification settings - Fork 41
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
Tagged template versions #370
base: scratch-package-refactor
Are you sure you want to change the base?
Conversation
import { block } from "$common/extension/decorators/blocks"; | ||
import { ExtensionInstance } from ".."; | ||
import { TypedMethodDecorator } from "."; | ||
import type BlockUtilityWithID from "$scratch-vm/engine/block-utility"; | ||
|
||
export const scratch = { | ||
reporter: makeDecorator("reporter"), | ||
command: makeDecorator("command"), |
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.
I propose, instead of having scratchVersions
, we a versions
property here, so the decorator can be used as scratch.versions
name?: { [key: string]: string }; | ||
}; | ||
|
||
export type Config = { |
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.
Did array type not work here? i.e. (ArgTransformer | BlockOptions;)[]
Also, we'll eventually want to give this a more obvious name
No description provided.