Skip to content

Commit

Permalink
Update BlockCreation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mrredo authored Sep 9, 2024
1 parent 484ddd6 commit f77a0e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/blocks/BlockCreation.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ type BlockDefinition = {
helpUrl: string;
// The block's code, with all the arguments passed in the "args" param
code: (args: Record<string, unknown>) => unknown;
// The blocks mutator(the gear icon located at the left top corner in the block)
mutator?: Mutator;
// Hides the block from category, but still have it registered as a block.
// Mostly used for mutator blocks that are inside the mutator menu
hidden?: boolean;
// List of library imports that block requires.
imports?: `${string}@${string}`[];
};
```

Expand Down

0 comments on commit f77a0e5

Please sign in to comment.