@@ -1847,14 +1847,15 @@ declare module "ace-code/src/search" {
1847
1847
declare module "ace-code/src/keyboard/hash_handler" {
1848
1848
export type Command = import ( "ace-code" ) . Ace . Command ;
1849
1849
export type CommandLike = import ( "ace-code" ) . Ace . CommandLike ;
1850
+ export type Platform = "win" | "mac" ;
1850
1851
export class HashHandler extends MultiHashHandler {
1851
1852
}
1852
1853
export namespace HashHandler {
1853
1854
function call ( thisArg : any , config : any , platform : any ) : void ;
1854
1855
}
1855
1856
export class MultiHashHandler {
1856
- constructor ( config ?: Record < string , CommandLike > | Command [ ] , platform ?: string ) ;
1857
- platform : string ;
1857
+ constructor ( config ?: Record < string , CommandLike > | Command [ ] , platform ?: Platform ) ;
1858
+ platform : Platform ;
1858
1859
commands : Record < string , Command > ;
1859
1860
commandKeyBinding : { } ;
1860
1861
addCommand ( command : Command ) : void ;
@@ -1890,10 +1891,10 @@ declare module "ace-code/src/commands/command_manager" {
1890
1891
export class CommandManager extends MultiHashHandler {
1891
1892
/**
1892
1893
* new CommandManager(platform, commands)
1893
- * @param {String } platform Identifier for the platform; must be either `"mac"` or `"win"`
1894
+ * @param {import("ace-code/src/keyboard/hash_handler").Platform } platform Identifier for the platform; must be either `"mac"` or `"win"`
1894
1895
* @param {any[] } commands A list of commands
1895
1896
**/
1896
- constructor ( platform : string , commands : any [ ] ) ;
1897
+ constructor ( platform : import ( "ace-code/src/keyboard/hash_handler" ) . Platform , commands : any [ ] ) ;
1897
1898
byName : Record < string , import ( "ace-code" ) . Ace . Command > ;
1898
1899
exec ( command : string | string [ ] | import ( "ace-code" ) . Ace . Command , editor : Editor , args : any ) : boolean ;
1899
1900
canExecute ( command : string | import ( "ace-code" ) . Ace . Command , editor : Editor ) : boolean ;
0 commit comments