mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[Atom] Add readonly qualifier to some properties
This commit is contained in:
Vendored
+45
-45
@@ -39,58 +39,58 @@ export function watchPath(rootPath: string, options: {}, eventCallback: (events:
|
||||
export interface AtomEnvironment {
|
||||
// Properties
|
||||
/** A CommandRegistry instance. */
|
||||
commands: CommandRegistry;
|
||||
readonly commands: CommandRegistry;
|
||||
|
||||
/** A Config instance. */
|
||||
config: Config;
|
||||
readonly config: Config;
|
||||
|
||||
/** A Clipboard instance. */
|
||||
clipboard: Clipboard;
|
||||
readonly clipboard: Clipboard;
|
||||
|
||||
/** A ContextMenuManager instance. */
|
||||
contextMenu: ContextMenuManager;
|
||||
readonly contextMenu: ContextMenuManager;
|
||||
|
||||
/** A MenuManager instance. */
|
||||
menu: MenuManager;
|
||||
readonly menu: MenuManager;
|
||||
|
||||
/** A KeymapManager instance. */
|
||||
keymaps: KeymapManager;
|
||||
readonly keymaps: KeymapManager;
|
||||
|
||||
/** A TooltipManager instance. */
|
||||
tooltips: TooltipManager;
|
||||
readonly tooltips: TooltipManager;
|
||||
|
||||
/** A NotificationManager instance. */
|
||||
notifications: NotificationManager;
|
||||
readonly notifications: NotificationManager;
|
||||
|
||||
/** A Project instance. */
|
||||
project: Project;
|
||||
readonly project: Project;
|
||||
|
||||
/** A GrammarRegistry instance. */
|
||||
grammars: GrammarRegistry;
|
||||
readonly grammars: GrammarRegistry;
|
||||
|
||||
/** A HistoryManager instance. */
|
||||
history: HistoryManager;
|
||||
readonly history: HistoryManager;
|
||||
|
||||
/** A PackageManager instance. */
|
||||
packages: PackageManager;
|
||||
readonly packages: PackageManager;
|
||||
|
||||
/** A ThemeManager instance. */
|
||||
themes: ThemeManager;
|
||||
readonly themes: ThemeManager;
|
||||
|
||||
/** A StyleManager instance. */
|
||||
styles: StyleManager;
|
||||
readonly styles: StyleManager;
|
||||
|
||||
/** A DeserializerManager instance. */
|
||||
deserializers: DeserializerManager;
|
||||
readonly deserializers: DeserializerManager;
|
||||
|
||||
/** A ViewRegistry instance. */
|
||||
views: ViewRegistry;
|
||||
readonly views: ViewRegistry;
|
||||
|
||||
/** A Workspace instance. */
|
||||
workspace: Workspace;
|
||||
readonly workspace: Workspace;
|
||||
|
||||
/** A TextEditorRegistry instance. */
|
||||
textEditors: TextEditorRegistry;
|
||||
readonly textEditors: TextEditorRegistry;
|
||||
|
||||
// Event Subscription
|
||||
/** Invoke the given callback whenever ::beep is called. */
|
||||
@@ -446,7 +446,7 @@ export interface Config {
|
||||
*/
|
||||
export interface Decoration {
|
||||
/** The identifier for this Decoration. */
|
||||
id: number;
|
||||
readonly id: number;
|
||||
|
||||
// Construction and Destruction
|
||||
/**
|
||||
@@ -654,7 +654,7 @@ export interface DisplayMarker {
|
||||
*/
|
||||
export interface DisplayMarkerLayer {
|
||||
/** The identifier for the underlying MarkerLayer. */
|
||||
id: string;
|
||||
readonly id: string;
|
||||
|
||||
// Lifecycle
|
||||
/** Destroy this layer. */
|
||||
@@ -839,7 +839,7 @@ export interface LayerDecoration {
|
||||
*/
|
||||
export interface Marker {
|
||||
/** The identifier for this Marker. */
|
||||
id: number;
|
||||
readonly id: number;
|
||||
|
||||
// Lifecycle
|
||||
/**
|
||||
@@ -952,7 +952,7 @@ export interface Marker {
|
||||
/** Experimental: A container for a related set of markers. */
|
||||
export interface MarkerLayer {
|
||||
/** The identifier for this MarkerLayer. */
|
||||
id: string;
|
||||
readonly id: string;
|
||||
|
||||
// Lifecycle
|
||||
/** Create a copy of this layer with markers in the same state and locations. */
|
||||
@@ -1036,7 +1036,7 @@ export class Notification {
|
||||
/** A notification manager used to create Notifications to be shown to the user. */
|
||||
export interface NotificationManager {
|
||||
// Properties
|
||||
notifications: Notification[];
|
||||
readonly notifications: Notification[];
|
||||
|
||||
// Events
|
||||
/** Invoke the given callback after a notification has been added. */
|
||||
@@ -1272,8 +1272,8 @@ export class Range {
|
||||
* including cursor and selection positions, folds, and soft wraps.
|
||||
*/
|
||||
export class TextEditor {
|
||||
id: number;
|
||||
buffer: TextBuffer;
|
||||
readonly id: number;
|
||||
readonly buffer: TextBuffer;
|
||||
|
||||
// NOTE: undocumented within the public API. Don't go down the rabbit hole.
|
||||
constructor(options?: object);
|
||||
@@ -2984,7 +2984,7 @@ export interface WorkspaceCenter {
|
||||
* Node's ChildProcess.
|
||||
*/
|
||||
export class BufferedProcess {
|
||||
process?: ChildProcess;
|
||||
readonly process?: ChildProcess;
|
||||
|
||||
constructor(options: ProcessOptions);
|
||||
|
||||
@@ -4052,10 +4052,10 @@ export interface MenuManager {
|
||||
*/
|
||||
export interface Package {
|
||||
/** The name of the Package. */
|
||||
name: string;
|
||||
readonly name: string;
|
||||
|
||||
/** The path to the Package on disk. */
|
||||
path: string;
|
||||
readonly path: string;
|
||||
|
||||
// Event Subscription
|
||||
/** Invoke the given callback when all packages have been activated. */
|
||||
@@ -4377,7 +4377,7 @@ export interface Pane {
|
||||
*/
|
||||
export interface Panel<T = object> {
|
||||
/** Whether or not the Panel is visible. */
|
||||
visible: boolean;
|
||||
readonly visible: boolean;
|
||||
|
||||
// Construction and Destruction
|
||||
/** Destroy and remove this panel from the UI. */
|
||||
@@ -4498,7 +4498,7 @@ export interface Project {
|
||||
* syntax tree to a token including all scope names for the entire path.
|
||||
*/
|
||||
export interface ScopeDescriptor {
|
||||
scopes: string[];
|
||||
readonly scopes: string[];
|
||||
|
||||
/** Returns all scopes for this descriptor. */
|
||||
getScopesArray(): string[];
|
||||
@@ -4894,13 +4894,13 @@ export class Task {
|
||||
*/
|
||||
export class TextBuffer {
|
||||
/** The unique identifier for this buffer. */
|
||||
id: string;
|
||||
readonly id: string;
|
||||
|
||||
/** The number of retainers for the buffer. */
|
||||
refcount: number;
|
||||
readonly refcount: number;
|
||||
|
||||
/** Whether or not the bufffer has been destroyed. */
|
||||
destroyed: boolean;
|
||||
readonly destroyed: boolean;
|
||||
|
||||
/** Create a new buffer backed by the given file path. */
|
||||
static load(filePath: string, params?: BufferLoadOptions): Promise<TextBuffer>;
|
||||
@@ -6753,11 +6753,11 @@ export interface TokenizeLineResult {
|
||||
* jQuery, which is an expensive dependency we want to eliminate.
|
||||
*/
|
||||
export interface Tooltip {
|
||||
options: TooltipOptions;
|
||||
enabled: boolean;
|
||||
timeout: number;
|
||||
hoverState: "in"|"out"|null;
|
||||
element: HTMLElement;
|
||||
readonly options: TooltipOptions;
|
||||
readonly enabled: boolean;
|
||||
readonly timeout: number;
|
||||
readonly hoverState: "in"|"out"|null;
|
||||
readonly element: HTMLElement;
|
||||
|
||||
getTitle(): string;
|
||||
getTooltipElement(): HTMLElement;
|
||||
@@ -6774,11 +6774,11 @@ export interface ViewModel {
|
||||
}
|
||||
|
||||
export interface WindowLoadSettings {
|
||||
appVersion: string;
|
||||
atomHome: string;
|
||||
devMode: boolean;
|
||||
resourcePath: string;
|
||||
safeMode: boolean;
|
||||
env?: { [key: string]: string|undefined };
|
||||
profileStartup?: boolean;
|
||||
readonly appVersion: string;
|
||||
readonly atomHome: string;
|
||||
readonly devMode: boolean;
|
||||
readonly resourcePath: string;
|
||||
readonly safeMode: boolean;
|
||||
readonly env?: { [key: string]: string|undefined };
|
||||
readonly profileStartup?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user