Fix to not use cursed empty object type and add lint (#6033)

This commit is contained in:
Jonathan Tran
2025-03-27 18:08:57 -04:00
committed by GitHub
parent 4f35197a96
commit 71b9e40bd9
9 changed files with 15 additions and 9 deletions

View File

@ -41,7 +41,7 @@ export const COMMAND_APPEARANCE_COLOR_DEFAULT = 'default'
export type HelixModes = 'Axis' | 'Edge' | 'Cylinder'
export type ModelingCommandSchema = {
'Enter sketch': {}
'Enter sketch': { forceNewSketch?: boolean }
Export: {
type: OutputTypeKey
storage?: StorageUnion
@ -146,6 +146,8 @@ export type ModelingCommandSchema = {
prompt: string
selection: Selections
}
// TODO: {} means any non-nullish value. This is probably not what we want.
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
'Delete selection': {}
Appearance: {
nodeToEdit?: PathToNode