浏览代码

Rely on compiler to enforce read-only.

Afshin Darian 8 年之前
父节点
当前提交
0df22670ea
共有 1 个文件被更改,包括 1 次插入10 次删除
  1. 1 10
      src/console/history.ts

+ 1 - 10
src/console/history.ts

@@ -30,11 +30,8 @@ interface IConsoleHistory extends IDisposable {
 
 
   /**
   /**
    * The placeholder text that a history session began with.
    * The placeholder text that a history session began with.
-   *
-   * #### Notes
-   * This is a read-only property.
    */
    */
-  placeholder: string;
+  readonly placeholder: string;
 
 
   /**
   /**
    * Get the previous item in the console history.
    * Get the previous item in the console history.
@@ -94,9 +91,6 @@ class ConsoleHistory implements IConsoleHistory {
 
 
   /**
   /**
    * Get whether the console history manager is disposed.
    * Get whether the console history manager is disposed.
-   *
-   * #### Notes
-   * This is a read-only property.
    */
    */
   get isDisposed(): boolean {
   get isDisposed(): boolean {
     return this._history === null;
     return this._history === null;
@@ -125,9 +119,6 @@ class ConsoleHistory implements IConsoleHistory {
 
 
   /**
   /**
    * The placeholder text that a history session began with.
    * The placeholder text that a history session began with.
-   *
-   * #### Notes
-   * This is a read-only property.
    */
    */
   get placeholder(): string {
   get placeholder(): string {
     return this._placeholder;
     return this._placeholder;