@phosphor/commands
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -1,2 +0,2 @@ | ||
import { JSONObject } from '@phosphor/coreutils'; | ||
import { ReadonlyJSONObject } from '@phosphor/coreutils'; | ||
import { IDisposable } from '@phosphor/disposable'; | ||
@@ -92,3 +92,3 @@ import { ISignal } from '@phosphor/signaling'; | ||
*/ | ||
label(id: string, args?: JSONObject): string; | ||
label(id: string, args?: ReadonlyJSONObject): string; | ||
/** | ||
@@ -104,7 +104,7 @@ * Get the mnemonic index for a specific command. | ||
*/ | ||
mnemonic(id: string, args?: JSONObject): number; | ||
mnemonic(id: string, args?: ReadonlyJSONObject): number; | ||
/** | ||
* @deprecated Use `iconClass()` instead. | ||
*/ | ||
icon(id: string, args?: JSONObject): string; | ||
icon(id: string, args?: ReadonlyJSONObject): string; | ||
/** | ||
@@ -120,3 +120,3 @@ * Get the icon class for a specific command. | ||
*/ | ||
iconClass(id: string, args?: JSONObject): string; | ||
iconClass(id: string, args?: ReadonlyJSONObject): string; | ||
/** | ||
@@ -132,3 +132,3 @@ * Get the icon label for a specific command. | ||
*/ | ||
iconLabel(id: string, args?: JSONObject): string; | ||
iconLabel(id: string, args?: ReadonlyJSONObject): string; | ||
/** | ||
@@ -144,3 +144,3 @@ * Get the short form caption for a specific command. | ||
*/ | ||
caption(id: string, args?: JSONObject): string; | ||
caption(id: string, args?: ReadonlyJSONObject): string; | ||
/** | ||
@@ -156,3 +156,3 @@ * Get the usage help text for a specific command. | ||
*/ | ||
usage(id: string, args?: JSONObject): string; | ||
usage(id: string, args?: ReadonlyJSONObject): string; | ||
/** | ||
@@ -168,3 +168,3 @@ * Get the extra class name for a specific command. | ||
*/ | ||
className(id: string, args?: JSONObject): string; | ||
className(id: string, args?: ReadonlyJSONObject): string; | ||
/** | ||
@@ -180,3 +180,3 @@ * Get the dataset for a specific command. | ||
*/ | ||
dataset(id: string, args?: JSONObject): CommandRegistry.Dataset; | ||
dataset(id: string, args?: ReadonlyJSONObject): CommandRegistry.Dataset; | ||
/** | ||
@@ -192,3 +192,3 @@ * Test whether a specific command is enabled. | ||
*/ | ||
isEnabled(id: string, args?: JSONObject): boolean; | ||
isEnabled(id: string, args?: ReadonlyJSONObject): boolean; | ||
/** | ||
@@ -204,3 +204,3 @@ * Test whether a specific command is toggled. | ||
*/ | ||
isToggled(id: string, args?: JSONObject): boolean; | ||
isToggled(id: string, args?: ReadonlyJSONObject): boolean; | ||
/** | ||
@@ -216,3 +216,3 @@ * Test whether a specific command is visible. | ||
*/ | ||
isVisible(id: string, args?: JSONObject): boolean; | ||
isVisible(id: string, args?: ReadonlyJSONObject): boolean; | ||
/** | ||
@@ -231,3 +231,3 @@ * Execute a specific command. | ||
*/ | ||
execute(id: string, args?: JSONObject): Promise<any>; | ||
execute(id: string, args?: ReadonlyJSONObject): Promise<any>; | ||
/** | ||
@@ -313,3 +313,3 @@ * Add a key binding to the registry. | ||
*/ | ||
type CommandFunc<T> = (args: JSONObject) => T; | ||
type CommandFunc<T> = (args: ReadonlyJSONObject) => T; | ||
/** | ||
@@ -517,3 +517,3 @@ * A type alias for a simple immutable string dataset. | ||
*/ | ||
readonly args: JSONObject; | ||
readonly args: ReadonlyJSONObject; | ||
/** | ||
@@ -570,3 +570,3 @@ * The promise which resolves with the result of the command. | ||
*/ | ||
args?: JSONObject; | ||
args?: ReadonlyJSONObject; | ||
/** | ||
@@ -613,3 +613,3 @@ * The key sequence to use when running on Windows. | ||
*/ | ||
readonly args: JSONObject; | ||
readonly args: ReadonlyJSONObject; | ||
} | ||
@@ -616,0 +616,0 @@ /** |
{ | ||
"name": "@phosphor/commands", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "PhosphorJS - Commands", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"@phosphor/algorithm": "^1.1.2", | ||
"@phosphor/coreutils": "^1.1.3", | ||
"@phosphor/coreutils": "^1.2.0", | ||
"@phosphor/disposable": "^1.1.2", | ||
@@ -19,0 +19,0 @@ "@phosphor/domutils": "^1.1.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58670
Updated@phosphor/coreutils@^1.2.0