Skip to content
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

Open
wants to merge 8 commits into
base: scratch-package-refactor
Choose a base branch
from

Conversation

pmalacho-mit
Copy link
Collaborator

No description provided.

@pmalacho-mit pmalacho-mit changed the base branch from dev to scratch-package-refactor June 25, 2024 16:04
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"),
Copy link
Collaborator Author

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 = {
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants