diff --git a/modules/extensions/src/api/experimental/commands.ts b/modules/extensions/src/api/experimental/commands.ts index 82c696b..da0ff54 100644 --- a/modules/extensions/src/api/experimental/commands.ts +++ b/modules/extensions/src/api/experimental/commands.ts @@ -15,7 +15,7 @@ export function registerCreate( ); } -interface AddCommandArgs { +export interface AddCommandArgs { /** * The command's unique identifier. This is used to identify the command in Replit's command system */ diff --git a/modules/extensions/src/apis.json b/modules/extensions/src/apis.json index 7ff13a8..6d21ecf 100644 --- a/modules/extensions/src/apis.json +++ b/modules/extensions/src/apis.json @@ -140,5 +140,23 @@ "name": "debug", "description": "The `debug` api module allows you to log data to the Extension Devtools", "typeNames": ["Primitive", "ObjectType", "NumericindexType", "Data"] + }, + { + "name": "commands", + "experimental": true, + "description": "The `commands` api module allows you to register commands that can be run from the CLUI command bar and other contribution points.", + "typeNames": [ + "CommandFnArgs", + "CommandsFn", + "CreateCommand", + "Run", + "SerializableValue", + "BaseCommandArgs", + "ActionCommandArgs", + "ContextCommandArgs", + "CommandArgs", + "CommandProxy", + "AddCommandArgs" + ] } ] diff --git a/modules/extensions/src/commands/index.ts b/modules/extensions/src/commands/index.ts index 22a12d8..12ac32b 100644 --- a/modules/extensions/src/commands/index.ts +++ b/modules/extensions/src/commands/index.ts @@ -29,7 +29,7 @@ export type CreateCommand = ( export type Run = () => any; -type SerializableValue = +export type SerializableValue = | string | number | boolean