diff --git a/ace/ace.d.ts b/ace/ace.d.ts index 58d65ed4f..fe31dcc20 100644 --- a/ace/ace.d.ts +++ b/ace/ace.d.ts @@ -67,7 +67,7 @@ module AceAjax { addKeyboardHandler(kb, pos); - removeKeyboardHandler(kb): bool; + removeKeyboardHandler(kb): boolean; getKeyboardHandler(): any; @@ -87,7 +87,7 @@ module AceAjax { getNextLineIndent (state, line, tab): string; - checkOutdent(state, line, input): bool; + checkOutdent(state, line, input): boolean; autoOutdent(state, doc, row); @@ -177,7 +177,7 @@ module AceAjax { * @param column The column index to move the anchor to * @param noClip Identifies if you want the position to be clipped **/ - setPosition(row: number, column: number, noClip: bool); + setPosition(row: number, column: number, noClip: boolean); /** * When called, the `'change'` event listener is removed. @@ -307,7 +307,7 @@ module AceAjax { * Returns `true` if `text` is a newline character (either `\r\n`, `\r`, or `\n`). * @param text The text to check **/ - isNewLine(text: string): bool; + isNewLine(text: string): boolean; /** * Returns a verbatim copy of the given line as it is in the document @@ -476,7 +476,7 @@ module AceAjax { expandFold(arg: any); - unfold(arg1: any, arg2: bool); + unfold(arg1: any, arg2: boolean); screenToDocumentColumn(row: number, column: number); @@ -560,12 +560,12 @@ module AceAjax { * Pass `true` to enable the use of soft tabs. Soft tabs means you're using spaces instead of the tab character (`'\t'`). * @param useSoftTabs Value indicating whether or not to use soft tabs **/ - setUseSoftTabs(useSoftTabs: bool); + setUseSoftTabs(useSoftTabs: boolean); /** * Returns `true` if soft tabs are being used, `false` otherwise. **/ - getUseSoftTabs(): bool; + getUseSoftTabs(): boolean; /** * Set the number of spaces that define a soft tab; for example, passing in `4` transforms the soft tabs to be equivalent to four spaces. This function also emits the `changeTabSize` event. @@ -582,19 +582,19 @@ module AceAjax { * Returns `true` if the character at the position is a soft tab. * @param position The position to check **/ - isTabStop(position: any): bool; + isTabStop(position: any): boolean; /** * Pass in `true` to enable overwrites in your session, or `false` to disable. * If overwrites is enabled, any text you enter will type over any text after it. If the value of `overwrite` changes, this function also emites the `changeOverwrite` event. * @param overwrite Defines wheter or not to set overwrites **/ - setOverwrite(overwrite: bool); + setOverwrite(overwrite: boolean); /** * Returns `true` if overwrites are enabled; `false` otherwise. **/ - getOverwrite(): bool; + getOverwrite(): boolean; /** * Sets the value of overwrite to the opposite of whatever it currently is. @@ -651,7 +651,7 @@ module AceAjax { * @param type Identify the type of the marker * @param inFront Set to `true` to establish a front marker **/ - addMarker(range: Range, clazz: string, type: Function, inFront: bool); + addMarker(range: Range, clazz: string, type: Function, inFront: boolean); /** * Adds a new marker to the given `Range`. If `inFront` is `true`, a front marker is defined, and the `'changeFrontMarker'` event fires; otherwise, the `'changeBackMarker'` event fires. @@ -660,14 +660,14 @@ module AceAjax { * @param type Identify the type of the marker * @param inFront Set to `true` to establish a front marker **/ - addMarker(range: Range, clazz: string, type: string, inFront: bool); + addMarker(range: Range, clazz: string, type: string, inFront: boolean); /** * Adds a dynamic marker to the session. * @param marker object with update method * @param inFront Set to `true` to establish a front marker **/ - addDynamicMarker(marker: any, inFront: bool); + addDynamicMarker(marker: any, inFront: boolean); /** * Removes the marker with the specified ID. If this marker was in front, the `'changeFrontMarker'` event is emitted. If the marker was in the back, the `'changeBackMarker'` event is emitted. @@ -679,7 +679,7 @@ module AceAjax { * Returns an array containing the IDs of all the markers, either front or back. * @param inFront If `true`, indicates you only want front markers; `false` indicates only back markers **/ - getMarkers(inFront: bool): Array; + getMarkers(inFront: boolean): Array; /** * Sets annotations for the `EditSession`. This functions emits the `'changeAnnotation'` event. @@ -732,12 +732,12 @@ module AceAjax { * Identifies if you want to use a worker for the `EditSession`. * @param useWorker Set to `true` to use a worker **/ - setUseWorker(useWorker: bool); + setUseWorker(useWorker: boolean); /** * Returns `true` if workers are being used. **/ - getUseWorker(): bool; + getUseWorker(): boolean; /** * Reloads all the tokens on the current session. This function calls [[BackgroundTokenizer.start `BackgroundTokenizer.start ()`]] to all the rows; it also emits the `'tokenizerUpdate'` event. @@ -823,20 +823,20 @@ module AceAjax { * @param deltas An array of previous changes * @param dontSelect [If `true`, doesn't select the range of where the change occured]{: #dontSelect} **/ - undoChanges(deltas: Array, dontSelect: bool): Range; + undoChanges(deltas: Array, dontSelect: boolean): Range; /** * Re-implements a previously undone change to your document. * @param deltas An array of previous changes * @param dontSelect {:dontSelect} **/ - redoChanges(deltas: Array, dontSelect: bool): Range; + redoChanges(deltas: Array, dontSelect: boolean): Range; /** * Enables or disables highlighting of the range where an undo occured. * @param enable If `true`, selects the range of the reinserted change **/ - setUndoSelect(enable: bool); + setUndoSelect(enable: boolean); /** * Replaces a range in the document with the new `text`. @@ -895,12 +895,12 @@ module AceAjax { * Sets whether or not line wrapping is enabled. If `useWrapMode` is different than the current value, the `'changeWrapMode'` event is emitted. * @param useWrapMode Enable (or disable) wrap mode **/ - setUseWrapMode(useWrapMode: bool); + setUseWrapMode(useWrapMode: boolean); /** * Returns `true` if wrap mode is being used; `false` otherwise. **/ - getUseWrapMode(): bool; + getUseWrapMode(): boolean; /** * Sets the boundaries of wrap. Either value can be `null` to have an unconstrained wrap, or, they can be the same number to pin the limit. If the wrap limits for `min` or `max` are different, this method also emits the `'changeWrapMode'` event. @@ -913,7 +913,7 @@ module AceAjax { * This should generally only be called by the renderer when a resize is detected. * @param desiredLimit The new wrap limit **/ - adjustWrapLimit(desiredLimit: number): bool; + adjustWrapLimit(desiredLimit: number): boolean; /** * Returns the value of wrap limit. @@ -1035,7 +1035,7 @@ module AceAjax { **/ export interface Editor { - inMultiSelectMode: bool; + inMultiSelectMode: boolean; selectMoreLines(n: number); @@ -1104,7 +1104,7 @@ module AceAjax { * {:VirtualRenderer.onResize} * @param force If `true`, recomputes the size, even if the height and width haven't changed **/ - resize(force?: bool); + resize(force?: boolean); /** * {:VirtualRenderer.setTheme} @@ -1201,12 +1201,12 @@ module AceAjax { * Pass in `true` to enable overwrites in your session, or `false` to disable. If overwrites is enabled, any text you enter will type over any text after it. If the value of `overwrite` changes, this function also emites the `changeOverwrite` event. * @param overwrite Defines wheter or not to set overwrites **/ - setOverwrite(overwrite: bool); + setOverwrite(overwrite: boolean); /** * Returns `true` if overwrites are enabled; `false` otherwise. **/ - getOverwrite(): bool; + getOverwrite(): boolean; /** * Sets the value of overwrite to the opposite of whatever it currently is. @@ -1253,7 +1253,7 @@ module AceAjax { * Determines whether or not the current line should be highlighted. * @param shouldHighlight Set to `true` to highlight the current line **/ - setHighlightActiveLine(shouldHighlight: bool); + setHighlightActiveLine(shouldHighlight: boolean); /** * Returns `true` if current lines are always highlighted. @@ -1264,34 +1264,34 @@ module AceAjax { * Determines if the currently selected word should be highlighted. * @param shouldHighlight Set to `true` to highlight the currently selected word **/ - setHighlightSelectedWord(shouldHighlight: bool); + setHighlightSelectedWord(shouldHighlight: boolean); /** * Returns `true` if currently highlighted words are to be highlighted. **/ - getHighlightSelectedWord(): bool; + getHighlightSelectedWord(): boolean; /** * If `showInvisibiles` is set to `true`, invisible characters—like spaces or new lines—are show in the editor. * @param showInvisibles Specifies whether or not to show invisible characters **/ - setShowInvisibles(showInvisibles: bool); + setShowInvisibles(showInvisibles: boolean); /** * Returns `true` if invisible characters are being shown. **/ - getShowInvisibles(): bool; + getShowInvisibles(): boolean; /** * If `showPrintMargin` is set to `true`, the print margin is shown in the editor. * @param showPrintMargin Specifies whether or not to show the print margin **/ - setShowPrintMargin(showPrintMargin: bool); + setShowPrintMargin(showPrintMargin: boolean); /** * Returns `true` if the print margin is being shown. **/ - getShowPrintMargin(): bool; + getShowPrintMargin(): boolean; /** * Sets the column defining where the print margin should be. @@ -1308,30 +1308,30 @@ module AceAjax { * If `readOnly` is true, then the editor is set to read-only mode, and none of the content can change. * @param readOnly Specifies whether the editor can be modified or not **/ - setReadOnly(readOnly: bool); + setReadOnly(readOnly: boolean); /** * Returns `true` if the editor is set to read-only mode. **/ - getReadOnly(): bool; + getReadOnly(): boolean; /** * Specifies whether to use behaviors or not. ["Behaviors" in this case is the auto-pairing of special characters, like quotation marks, parenthesis, or brackets.]{: #BehaviorsDef} * @param enabled Enables or disables behaviors **/ - setBehavioursEnabled(enabled: bool); + setBehavioursEnabled(enabled: boolean); /** * Returns `true` if the behaviors are currently enabled. {:BehaviorsDef} **/ - getBehavioursEnabled(): bool; + getBehavioursEnabled(): boolean; /** * Specifies whether to use wrapping behaviors or not, i.e. automatically wrapping the selection with characters such as brackets * when such a character is typed in. * @param enabled Enables or disables wrapping behaviors **/ - setWrapBehavioursEnabled(enabled: bool); + setWrapBehavioursEnabled(enabled: boolean); /** * Returns `true` if the wrapping behaviors are currently enabled. @@ -1342,7 +1342,7 @@ module AceAjax { * Indicates whether the fold widgets are shown or not. * @param show Specifies whether the fold widgets are shown **/ - setShowFoldWidgets(show: bool); + setShowFoldWidgets(show: boolean); /** * Returns `true` if the fold widgets are shown. @@ -1475,13 +1475,13 @@ module AceAjax { * Indicates if the row is currently visible on the screen. * @param row The row to check **/ - isRowVisible(row: number): bool; + isRowVisible(row: number): boolean; /** * Indicates if the entire row is currently visible on the screen. * @param row The row to check **/ - isRowFullyVisible(row: number): bool; + isRowFullyVisible(row: number): boolean; /** * Selects the text from the current position of the document until where a "page down" finishes. @@ -1525,7 +1525,7 @@ module AceAjax { * @param animate If `true` animates scrolling * @param callback Function to be called when the animation has finished **/ - scrollToLine(line: number, center: bool, animate: bool, callback: Function); + scrollToLine(line: number, center: boolean, animate: boolean, callback: Function); /** * Attempts to center the current selection on the screen. @@ -1562,7 +1562,7 @@ module AceAjax { * @param row The new row number * @param column The new column number **/ - moveCursorTo(row: number, column?: number, animate?:bool); + moveCursorTo(row: number, column?: number, animate?:boolean); /** * Moves the cursor to the position indicated by `pos.row` and `pos.column`. @@ -1581,7 +1581,7 @@ module AceAjax { * @param column A column number to go to * @param animate If `true` animates scolling **/ - gotoLine(lineNumber: number, column?: number, animate?: bool); + gotoLine(lineNumber: number, column?: number, animate?: boolean); /** * Moves the cursor to the specified row and column. Note that this does de-select the current selection. @@ -1669,21 +1669,21 @@ module AceAjax { * @param options An object defining various search properties * @param animate If `true` animate scrolling **/ - find(needle: string, options?: any, animate?: bool); + find(needle: string, options?: any, animate?: boolean); /** * Performs another search for `needle` in the document. For more information on `options`, see [[Search `Search`]]. * @param options search options * @param animate If `true` animate scrolling **/ - findNext(options?: any, animate?: bool); + findNext(options?: any, animate?: boolean); /** * Performs a search for `needle` backwards. For more information on `options`, see [[Search `Search`]]. * @param options search options * @param animate If `true` animate scrolling **/ - findPrevious(options?: any, animate?: bool); + findPrevious(options?: any, animate?: boolean); /** * {:UndoManager.undo} @@ -1817,7 +1817,7 @@ module AceAjax { end: Position; - isEmpty(): bool; + isEmpty(): boolean; /** * Returns `true` if and only if the starting row and column, and ending row and column, are equivalent to those given by `range`. @@ -1842,7 +1842,7 @@ module AceAjax { * @param row A row to check for * @param column A column to check for **/ - contains(row: number, column: number): bool; + contains(row: number, column: number): boolean; /** * Compares `this` range (A) with another range (B). @@ -1860,27 +1860,27 @@ module AceAjax { * Checks the start and end points of `range` and compares them to the calling range. Returns `true` if the `range` is contained within the caller's range. * @param range A range to compare with **/ - containsRange(range: Range): bool; + containsRange(range: Range): boolean; /** * Returns `true` if passed in `range` intersects with the one calling this method. * @param range A range to compare with **/ - intersects(range: Range): bool; + intersects(range: Range): boolean; /** * Returns `true` if the caller's ending row point is the same as `row`, and if the caller's ending column is the same as `column`. * @param row A row point to compare with * @param column A column point to compare with **/ - isEnd(row: number, column: number): bool; + isEnd(row: number, column: number): boolean; /** * Returns `true` if the caller's starting row point is the same as `row`, and if the caller's starting column is the same as `column`. * @param row A row point to compare with * @param column A column point to compare with **/ - isStart(row: number, column: number): bool; + isStart(row: number, column: number): boolean; /** * Sets the starting row and column for the range. @@ -1901,21 +1901,21 @@ module AceAjax { * @param row A row point to compare with * @param column A column point to compare with **/ - inside(row: number, column: number): bool; + inside(row: number, column: number): boolean; /** * Returns `true` if the `row` and `column` are within the given range's starting points. * @param row A row point to compare with * @param column A column point to compare with **/ - insideStart(row: number, column: number): bool; + insideStart(row: number, column: number): boolean; /** * Returns `true` if the `row` and `column` are within the given range's ending points. * @param row A row point to compare with * @param column A column point to compare with **/ - insideEnd(row: number, column: number): bool; + insideEnd(row: number, column: number): boolean; /** * Checks the row and column points with the row and column points of the calling range. @@ -1962,7 +1962,7 @@ module AceAjax { /** * Returns `true` if the range spans across multiple lines. **/ - isMultiLine(): bool; + isMultiLine(): boolean; /** * Returns a duplicate of the calling range. @@ -2147,12 +2147,12 @@ module AceAjax { /** * Returns `true` if the selection is empty. **/ - isEmpty(): bool; + isEmpty(): boolean; /** * Returns `true` if the selection is a multi-line. **/ - isMultiLine(): bool; + isMultiLine(): boolean; /** * Gets the current position of the cursor. @@ -2185,7 +2185,7 @@ module AceAjax { /** * Returns `true` if the selection is going backwards in the document. **/ - isBackwards(): bool; + isBackwards(): boolean; /** * [Returns the [[Range]] for the selected text.]{: #Selection.getRange} @@ -2207,7 +2207,7 @@ module AceAjax { * @param range The range of text to select * @param reverse Indicates if the range should go backwards (`true`) or not **/ - setRange(range: Range, reverse: bool); + setRange(range: Range, reverse: boolean); /** * Moves the selection cursor to the indicated row and column. @@ -2361,7 +2361,7 @@ module AceAjax { * @param column The column to move to * @param keepDesiredColumn [If `true`, the cursor move does not respect the previous column]{: #preventUpdateBool} **/ - moveCursorTo(row: number, column: number, keepDesiredColumn?: bool); + moveCursorTo(row: number, column: number, keepDesiredColumn?: boolean); /** * Moves the cursor to the screen position indicated by row and column. {:preventUpdateBoolDesc} @@ -2369,7 +2369,7 @@ module AceAjax { * @param column The column to move to * @param keepDesiredColumn {:preventUpdateBool} **/ - moveCursorToScreen(row: number, column: number, keepDesiredColumn: bool); + moveCursorToScreen(row: number, column: number, keepDesiredColumn: boolean); } declare var Selection: { /** @@ -2552,13 +2552,13 @@ module AceAjax { * [Perform an undo operation on the document, reverting the last change.]{: #UndoManager.undo} * @param dontSelect {:dontSelect} **/ - undo(dontSelect?: bool): Range; + undo(dontSelect?: boolean): Range; /** * [Perform a redo operation on the document, reimplementing the last change.]{: #UndoManager.redo} * @param dontSelect {:dontSelect} **/ - redo(dontSelect: bool); + redo(dontSelect: boolean); /** * Destroys the stack of undo and redo redo operations. @@ -2568,12 +2568,12 @@ module AceAjax { /** * Returns `true` if there are undo operations left to perform. **/ - hasUndo(): bool; + hasUndo(): boolean; /** * Returns `true` if there are redo operations left to perform. **/ - hasRedo(): bool; + hasRedo(): boolean; } declare var UndoManager: { @@ -2621,7 +2621,7 @@ module AceAjax { * Triggers a full update of all the layers, for all the rows. * @param force If `true`, forces the changes through **/ - updateFull(force: bool); + updateFull(force: boolean); /** * Updates the font size. @@ -2635,7 +2635,7 @@ module AceAjax { * @param width The width of the editor in pixels * @param height The hiehgt of the editor, in pixels **/ - onResize(force: bool, gutterWidth: number, width: number, height: number); + onResize(force: boolean, gutterWidth: number, width: number, height: number); /** * Adjusts the wrap limit, which is the number of characters that can fit within the width of the edit area on screen. @@ -2646,56 +2646,56 @@ module AceAjax { * Identifies whether you want to have an animated scroll or not. * @param shouldAnimate Set to `true` to show animated scrolls **/ - setAnimatedScroll(shouldAnimate: bool); + setAnimatedScroll(shouldAnimate: boolean); /** * Returns whether an animated scroll happens or not. **/ - getAnimatedScroll(): bool; + getAnimatedScroll(): boolean; /** * Identifies whether you want to show invisible characters or not. * @param showInvisibles Set to `true` to show invisibles **/ - setShowInvisibles(showInvisibles: bool); + setShowInvisibles(showInvisibles: boolean); /** * Returns whether invisible characters are being shown or not. **/ - getShowInvisibles(): bool; + getShowInvisibles(): boolean; /** * Identifies whether you want to show the print margin or not. * @param showPrintMargin Set to `true` to show the print margin **/ - setShowPrintMargin(showPrintMargin: bool); + setShowPrintMargin(showPrintMargin: boolean); /** * Returns whether the print margin is being shown or not. **/ - getShowPrintMargin(): bool; + getShowPrintMargin(): boolean; /** * Identifies whether you want to show the print margin column or not. * @param showPrintMargin Set to `true` to show the print margin column **/ - setPrintMarginColumn(showPrintMargin: bool); + setPrintMarginColumn(showPrintMargin: boolean); /** * Returns whether the print margin column is being shown or not. **/ - getPrintMarginColumn(): bool; + getPrintMarginColumn(): boolean; /** * Returns `true` if the gutter is being shown. **/ - getShowGutter(): bool; + getShowGutter(): boolean; /** * Identifies whether you want to show the gutter or not. * @param show Set to `true` to show the gutter **/ - setShowGutter(show: bool); + setShowGutter(show: boolean); /** * Returns the root element containing this renderer. @@ -2741,13 +2741,13 @@ module AceAjax { /** * Returns whether the horizontal scrollbar is set to be always visible. **/ - getHScrollBarAlwaysVisible(): bool; + getHScrollBarAlwaysVisible(): boolean; /** * Identifies whether you want to show the horizontal scrollbar or not. * @param alwaysVisible Set to `true` to make the horizontal scroll bar visible **/ - setHScrollBarAlwaysVisible(alwaysVisible: bool); + setHScrollBarAlwaysVisible(alwaysVisible: boolean); /** * Schedules an update to all the front markers in the document. @@ -2833,7 +2833,7 @@ module AceAjax { * @param animate If `true` animates scrolling * @param callback Function to be called after the animation has finished **/ - scrollToLine(line: number, center: bool, animate: bool, callback: Function); + scrollToLine(line: number, center: boolean, animate: boolean, callback: Function); /** * Scrolls the editor to the y pixel indicated. @@ -2859,7 +2859,7 @@ module AceAjax { * @param deltaX The x value to scroll by * @param deltaY The y value to scroll by **/ - isScrollableBy(deltaX: number, deltaY: number): bool; + isScrollableBy(deltaX: number, deltaY: number): boolean; /** * Returns an object containing the `pageX` and `pageY` coordinates of the document position. @@ -2934,4 +2934,4 @@ module AceAjax { } } -declare var ace: AceAjax.Ace; \ No newline at end of file +declare var ace: AceAjax.Ace; diff --git a/arbiter/Arbiter.d.ts b/arbiter/Arbiter.d.ts index d80661e58..cb35f9c58 100644 --- a/arbiter/Arbiter.d.ts +++ b/arbiter/Arbiter.d.ts @@ -20,13 +20,13 @@ declare module ArbiterDef { /** * A subscriber can be set to execute asynchronously, even if the message wasn't published as async. */ - async?: bool; + async?: boolean; /** * If your subscriber is not interested in any past messages that may have been * persisted, you can force them to be ignored. */ - persist?: bool; + persist?: boolean; } export interface PublishOptions { @@ -35,19 +35,19 @@ declare module ArbiterDef { * receiving the message. By passing cancelable:false in the options, the publisher * can prevent canceling. */ - cancelable?: bool; + cancelable?: boolean; /** * If the publishers wants subscribers to be notified even if they subscribe later, * setting the persist flag will do that. */ - persist?: bool; + persist?: boolean; /** * If you wish to notify the subscribers but return from the publish() call before * the subscriber functions execute, use asynchronous mode */ - async?: bool; + async?: boolean; } export interface ArbiterStatic { @@ -67,7 +67,7 @@ declare module ArbiterDef { * @param msg Message may be in any format, but may not contain [ ,*]. A structure like a/b/c is recommended by convention, to allow messages to be categorized. * @param data Pass data to subscribers that contains details about the message. */ - publish(msg: string, data?: any, options?: PublishOptions): bool; + publish(msg: string, data?: any, options?: PublishOptions): boolean; /** diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts index 4a979ad85..6d5884f1c 100644 --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -180,9 +180,9 @@ declare module chrome.browserAction { //////////////////// declare module chrome.browsingData { interface OriginTypes { - protectedWeb?: bool; - extension?: bool; - unprotectedWeb?: bool; + protectedWeb?: boolean; + extension?: boolean; + unprotectedWeb?: boolean; } interface RemovalOptions { @@ -191,19 +191,19 @@ declare module chrome.browsingData { } interface DataToRemove { - webSQL?: bool; - indexedDB?: bool; - cookies?: bool; - passwords?: bool; - serverBoundCertificates?: bool; - downloads?: bool; - cache?: bool; - appcache?: bool; - fileSystems?: bool; - pluginData?: bool; - localStorage?: bool; - formData?: bool; - history?: bool; + webSQL?: boolean; + indexedDB?: boolean; + cookies?: boolean; + passwords?: boolean; + serverBoundCertificates?: boolean; + downloads?: boolean; + cache?: boolean; + appcache?: boolean; + fileSystems?: boolean; + pluginData?: boolean; + localStorage?: boolean; + formData?: boolean; + history?: boolean; } export function removePluginData(options: RemovalOptions, callback?: Function); @@ -251,7 +251,7 @@ declare module chrome.contentSettings { interface GetDetails { secondaryUrl?: string; resourceIdentifier?: ResourceIdentifier; - incognito?: bool; + incognito?: boolean; primaryUrl: string; } @@ -285,12 +285,12 @@ declare module chrome.contentSettings { declare module chrome.contextMenus { interface OnClickData { selectionText?: string; - checked?: bool; + checked?: boolean; menuItemId: any; frameUrl?: string; - editable: bool; + editable: boolean; mediaType?: string; - wasChecked?: bool; + wasChecked?: boolean; pageUrl: string; linkUrl?: string; parentMenuItemId?: any; @@ -298,10 +298,10 @@ declare module chrome.contextMenus { interface CreateProperties { documentUrlPatterns?: string[]; - checked?: bool; + checked?: boolean; title?: string; contexts?: string[]; - enabled?: bool; + enabled?: boolean; targetUrlPatterns?: string[]; onclick?: (info: OnClickData, tab: chrome.tabs.Tab) => void; parentId?: any; @@ -311,10 +311,10 @@ declare module chrome.contextMenus { interface UpdateProperties { documentUrlPatterns?: string[]; - checked?: bool; + checked?: boolean; title?: string; contexts?: string[]; - enabled?: bool; + enabled?: boolean; targetUrlPatterns?: string[]; onclick?: Function; parentId?: any; @@ -342,12 +342,12 @@ declare module chrome.cookies { name: string; storeId: string; value: string; - session: bool; - hostOnly: bool; + session: boolean; + hostOnly: boolean; expirationDate?: number; path: string; - httpOnly: bool; - secure: bool; + httpOnly: boolean; + secure: boolean; } interface CookieStore { @@ -360,9 +360,9 @@ declare module chrome.cookies { name?: string; url?: string; storeId?: string; - session?: bool; + session?: boolean; path?: string; - secure?: bool; + secure?: boolean; } interface SetDetails { @@ -373,8 +373,8 @@ declare module chrome.cookies { value?: string; expirationDate?: number; path?: string; - httpOnly?: bool; - secure?: bool; + httpOnly?: boolean; + secure?: boolean; } interface Details { @@ -385,7 +385,7 @@ declare module chrome.cookies { interface CookieChangeInfo { cookie: Cookie; - removed: bool; + removed: boolean; cause: string; } @@ -544,13 +544,13 @@ declare module chrome.devtools.inspectedWindow { interface Resource { url: string; getContent(callback: (content: string, encoding: string) => void): void; - setContent(content: string, commit: bool, callback?: (error: Object) => void): void; + setContent(content: string, commit: boolean, callback?: (error: Object) => void): void; } interface ReloadOptions { userAgent?: string; - ignoreCache?: bool; - injectedScript?: bool; + ignoreCache?: boolean; + injectedScript?: boolean; } interface ResourceAddedEvent extends chrome.events.Event { @@ -564,7 +564,7 @@ declare module chrome.devtools.inspectedWindow { declare var tabId: number; export function reload(reloadOptions: ReloadOptions): void; - export function eval(expression: string, callback?: (result: Object, isException: bool) => void): void; + export function eval(expression: string, callback?: (result: Object, isException: boolean) => void): void; export function getResources(callback: (resources: Resource[]) => void): void; declare var onResourceAdded: ResourceAddedEvent; @@ -610,7 +610,7 @@ declare module chrome.devtools.panels { } interface ExtensionPanel { - createStatusButton(iconPath: string, tooltipText: string, disabled: bool): Button; + createStatusButton(iconPath: string, tooltipText: string, disabled: boolean): Button; onShown: PanelShownEvent; onHidden: PanelHiddenEvent; onSearch: PanelSearchEvent; @@ -621,7 +621,7 @@ declare module chrome.devtools.panels { } interface Button { - update(iconPath?: string, tooltipText?: string, disabled?: bool); + update(iconPath?: string, tooltipText?: string, disabled?: boolean); onClicked: ButtonClickedEvent; } @@ -668,7 +668,7 @@ declare module chrome.downloads { interface DownloadOptions { body?: string; - saveAs?: bool; + saveAs?: boolean; url: string; filename?: string; headers?: HeaderNameValuePair[]; @@ -692,8 +692,8 @@ declare module chrome.downloads { } interface DownloadBooleanDiff { - current?: bool; - previous?: bool; + current?: boolean; + previous?: boolean; } interface DownloadLongDiff { @@ -711,9 +711,9 @@ declare module chrome.downloads { danger: string; url: string; totalBytes: number; - dangerAccepted?: bool; + dangerAccepted?: boolean; filename: string; - paused: bool; + paused: boolean; state: string; mime: string; fileSize: number; @@ -721,7 +721,7 @@ declare module chrome.downloads { error?: number; endTime?: number; id: number; - incognito: bool; + incognito: boolean; } interface GetFileIconOptions { @@ -735,7 +735,7 @@ declare module chrome.downloads { totalBytesGreater?: number; danger?: string; totalBytes?: number; - paused?: bool; + paused?: boolean; filenameRegex?: string; query?: string; totalBytesLess?: number; @@ -745,7 +745,7 @@ declare module chrome.downloads { filename?: string; state?: string; startedAfter?: number; - dangerAccepted?: bool; + dangerAccepted?: boolean; mime?: string; fileSize?: number; startTime?: number; @@ -815,7 +815,7 @@ declare module chrome.events { removeRules(ruleIdentifiers?: string[], callback?: Function): void; addRules(rules: Rule[], callback?: (rules: Rule[]) => void): void; removeListener(callback: Function): void; - hasListeners(): bool; + hasListeners(): boolean; } interface Rule { @@ -868,14 +868,14 @@ declare module chrome.extension { addListener(callback: (port: Port) => void): void; } - declare var inIncognitoContext: bool; + declare var inIncognitoContext: boolean; declare var lastError: Object; export function getBackgroundPage(): Window; export function getURL(path: string): string; export function setUpdateUrlData(data: string): void; export function getViews(fetchProperties?: FetchProperties): Window[]; - export function isAllowedFileSchemeAccess(callback: (isAllowedAccess: bool) => void): void; + export function isAllowedFileSchemeAccess(callback: (isAllowedAccess: boolean) => void): void; export function sendMessage(message: any, responseCallback?: (response: any) => void): void; export function sendMessage(extensionId: string, message: any, responseCallback?: (response: any) => void): void; export function connect(extensionId?: string, connectInfo?: ConnectInfo): Port; @@ -898,7 +898,7 @@ declare module chrome.fileBrowserHandler { interface SelectionResult { entry?: Object; - success: bool; + success: boolean; } interface FileHandlerExecuteEventDetails { @@ -1033,7 +1033,7 @@ declare module chrome.history { } interface RemovedResult { - allHistory: bool; + allHistory: boolean; urls?: string[]; } @@ -1082,11 +1082,11 @@ declare module chrome.idle { //////////////////// declare module chrome.input.ime { interface KeyboardEvent { - shiftKey?: bool; - altKey?: bool; + shiftKey?: boolean; + altKey?: boolean; requestId: string; key: string; - ctrlKey?: bool; + ctrlKey?: boolean; type: string; } @@ -1125,12 +1125,12 @@ declare module chrome.input.ime { } interface CandidateWindowPropertiesParameters { - cursorVisible?: bool; - vertical?: bool; + cursorVisible?: boolean; + vertical?: boolean; pageSize?: number; - auxiliaryTextVisible?: bool; + auxiliaryTextVisible?: boolean; auxiliaryText?: string; - visible?: bool; + visible?: boolean; } interface ClearCompositionParameters { @@ -1175,13 +1175,13 @@ declare module chrome.input.ime { } export function setMenuItems(parameters: ImeParameters, callback?: Function): void; - export function commitText(parameters: CommitTextParameters, callback?: (success: bool) => void): void; - export function setCandidates(parameters: CandidatesParameters, callback?: (success: bool) => void): void; - export function setComposition(parameters: CompositionParameters, callback?: (success: bool) => void): void; + export function commitText(parameters: CommitTextParameters, callback?: (success: boolean) => void): void; + export function setCandidates(parameters: CandidatesParameters, callback?: (success: boolean) => void): void; + export function setComposition(parameters: CompositionParameters, callback?: (success: boolean) => void): void; export function updateMenuItems(parameters: MenuItemParameters, callback?: Function): void; - export function setCandidateWindowProperties(parameters: CandidateWindowPropertiesParameters, callback?: (success: bool) => void): void; - export function clearComposition(parameters: ClearCompositionParameters, callback?: (success: bool) => void): void; - export function setCursorPosition(parameters: CursorPositionParameters, callback?: (success: bool) => void): void; + export function setCandidateWindowProperties(parameters: CandidateWindowPropertiesParameters, callback?: (success: boolean) => void): void; + export function clearComposition(parameters: ClearCompositionParameters, callback?: (success: boolean) => void): void; + export function setCursorPosition(parameters: CursorPositionParameters, callback?: (success: boolean) => void): void; declare var onBlur: BlurEvent; declare var onCandidateClicked: CandidateClickedEvent; @@ -1204,13 +1204,13 @@ declare module chrome.management { permissions: string[]; icons?: IconInfo[]; hostPermissions: string[]; - enabled: bool; + enabled: boolean; homepageUrl?: string; - mayDisable: bool; + mayDisable: boolean; installType: string; version: string; id: string; - offlineEnabled: bool; + offlineEnabled: boolean; updateUrl?: string; type: string; optionsUrl: string; @@ -1223,7 +1223,7 @@ declare module chrome.management { } interface UninstallOptions { - showConfirmDialog?: bool; + showConfirmDialog?: boolean; } interface ManagementDisabledEvent extends chrome.events.Event { @@ -1242,7 +1242,7 @@ declare module chrome.management { addListener(callback: (info: ExtensionInfo) => void): void; } - export function setEnabled(id: string, enabled: bool, callback?: Function): void; + export function setEnabled(id: string, enabled: boolean, callback?: Function): void; export function getPermissionWarningsById(id: string, callback?: (permissionWarnings: string[]) => void): void; export function get(id: string, callback?: (result: ExtensionInfo) => void): void; export function getAll(callback?: (result: ExtensionInfo[]) => void): void; @@ -1361,10 +1361,10 @@ declare module chrome.permissions { addListener(callback: (permissions: Permissions) => void): void; } - export function contains(permissions: Permissions, callback: (result: bool) => void): void; + export function contains(permissions: Permissions, callback: (result: boolean) => void): void; export function getAll(callback: (permissions: Permissions) => void): void; - export function request(permissions: Permissions, callback?: (granted: bool) => void): void; - export function remove(permissions: Permissions, callback?: (removed: bool) => void): void; + export function request(permissions: Permissions, callback?: (granted: boolean) => void): void; + export function remove(permissions: Permissions, callback?: (removed: boolean) => void): void; declare var onRemoved: PermissionsRemovedEvent; declare var onAdded: PermissionsAddedEvent; @@ -1406,7 +1406,7 @@ declare module chrome.privacy { declare module chrome.proxy { interface PacScript { url?: string; - mandatory?: bool; + mandatory?: boolean; data?: string; } @@ -1434,7 +1434,7 @@ declare module chrome.proxy { interface ErrorDetails { details: string; error: string; - fatal: bool; + fatal: boolean; } interface ProxyErrorEvent extends chrome.events.Event { @@ -1591,7 +1591,7 @@ declare module chrome.socket { peerAddress?: string; peerPort?: number; localAddress?: string; - connected: bool; + connected: boolean; } interface NetworkInterface { @@ -1610,8 +1610,8 @@ declare module chrome.socket { export function sendTo(socketId: number, data: ArrayBuffer, address: string, port: number, callback?: (writeInfo: WriteInfo) => void): void; export function listen(socketId: number, address: string, port: number, backlog?: number, callback?: (result: number) => void): void; export function accept(socketId: number, callback?: (acceptInfo: AcceptInfo) => void): void; - export function setKeepAlive(socketId: number, enable: bool, delay?: number, callback?: (result: bool) => void): void; - export function setNoDelay(socketId: number, noDelay: bool, callback?: (result: bool) => void): void; + export function setKeepAlive(socketId: number, enable: boolean, delay?: number, callback?: (result: boolean) => void): void; + export function setNoDelay(socketId: number, noDelay: boolean, callback?: (result: boolean) => void): void; export function getInfo(socketId: number, callback: (result: SocketInfo) => void): void; export function getNetworkList(callback: (result: NetworkInterface[]) => void): void; } @@ -1626,17 +1626,17 @@ declare module chrome.tabs { openerTabId?: number; title?: string; url?: string; - pinned: bool; - highlighted: bool; + pinned: boolean; + highlighted: boolean; windowId: number; - active: bool; + active: boolean; favIconUrl?: string; id: number; - incognito: bool; + incognito: boolean; } interface InjectDetails { - allFrames?: bool; + allFrames?: boolean; code?: string; runAt?: string; file?: string; @@ -1646,9 +1646,9 @@ declare module chrome.tabs { index?: number; openerTabId?: number; url?: string; - pinned?: bool; + pinned?: boolean; windowId?: number; - active?: bool; + active?: boolean; } interface MoveProperties { @@ -1657,11 +1657,11 @@ declare module chrome.tabs { } interface UpdateProperties { - pinned?: bool; + pinned?: boolean; openerTabId?: number; url?: string; - highlighted?: bool; - active?: bool; + highlighted?: boolean; + active?: boolean; } interface CaptureVisibleTabOptions { @@ -1670,7 +1670,7 @@ declare module chrome.tabs { } interface ReloadProperties { - bypassCache?: bool; + bypassCache?: boolean; } interface ConnectInfo { @@ -1684,16 +1684,16 @@ declare module chrome.tabs { interface QueryInfo { status?: string; - lastFocusedWindow?: bool; + lastFocusedWindow?: boolean; windowId?: number; windowType?: string; - active?: bool; + active?: boolean; index?: number; title?: string; url?: string; - currentWindow?: bool; - highlighted?: bool; - pinned?: bool; + currentWindow?: boolean; + highlighted?: boolean; + pinned?: boolean; } interface TabHighlightInfo { @@ -1702,7 +1702,7 @@ declare module chrome.tabs { } interface TabRemoveInfo { - isWindowClosing: bool; + isWindowClosing: boolean; } interface TabAttachInfo { @@ -1712,7 +1712,7 @@ declare module chrome.tabs { interface TabChangeInfo { status?: string; - pinned?: bool; + pinned?: boolean; url?: string; } @@ -1830,7 +1830,7 @@ declare module chrome.tts { interface SpeakOptions { volume?: number; - enqueue?: bool; + enqueue?: boolean; rate?: number; onEvent?: (event: TtsEvent) => void; pitch?: number; @@ -1842,7 +1842,7 @@ declare module chrome.tts { desiredEventTypes?: string[]; } - export function isSpeaking(callback?: (speaking: bool) => void): void; + export function isSpeaking(callback?: (speaking: boolean) => void): void; export function stop(): void; export function getVoices(callback?: (voices: TtsVoice[]) => void): void; export function speak(utterance: string, options?: SpeakOptions, callback?: Function): void; @@ -1883,13 +1883,13 @@ declare module chrome.types { } interface ChromeSettingGetDetails { - incognito?: bool; + incognito?: boolean; } interface ChromeSettingGetResultDetails { levelOfControl: string; value: any; - incognitoSpecific?: bool; + incognitoSpecific?: boolean; } interface ChromeSettingChangedEvent extends chrome.events.Event { @@ -1919,7 +1919,7 @@ declare module chrome.webNavigation { interface GetFrameResultDetails { url: string; - errorOccurred: bool; + errorOccurred: boolean; } interface GetAllFrameDetails { @@ -2064,7 +2064,7 @@ declare module chrome.webRequest { } interface BlockingResponse { - cancel?: bool; + cancel?: boolean; redirectUrl?: string; responseHeaders?: Object; authCredentials?: AuthCredentials; @@ -2090,7 +2090,7 @@ declare module chrome.webRequest { frameId: number; responseHeaders?: Object; parentFrameId: number; - fromCache: bool; + fromCache: boolean; url: string; timeStamp: number; requestId: string; @@ -2119,7 +2119,7 @@ declare module chrome.webRequest { frameId: number; responseHeaders?: Object; parentFrameId: number; - fromCache: bool; + fromCache: boolean; url: string; timeStamp: number; requestId: string; @@ -2140,7 +2140,7 @@ declare module chrome.webRequest { frameId: number; challenger: Challenger; responseHeaders: Object; - isProxy: bool; + isProxy: boolean; realm?: string; parentFrameId: number; url: string; @@ -2168,7 +2168,7 @@ declare module chrome.webRequest { ip?: string; frameId: number; parentFrameId: number; - fromCache: bool; + fromCache: boolean; url: string; timeStamp: number; requestId: string; @@ -2184,7 +2184,7 @@ declare module chrome.webRequest { frameId: number; responseHeaders?: Object; parentFrameId: number; - fromCache: bool; + fromCache: boolean; url: string; timeStamp: number; requestId: string; @@ -2288,16 +2288,16 @@ declare module chrome.windows { height: number; width: number; state: string; - focused: bool; - alwaysOnTop: bool; - incognito: bool; + focused: boolean; + alwaysOnTop: boolean; + incognito: boolean; type: string; id: number; left: number; } interface GetInfo { - populate?: bool; + populate?: boolean; } interface CreateData { @@ -2306,19 +2306,19 @@ declare module chrome.windows { top?: number; height?: number; width?: number; - focused?: bool; - incognito?: bool; + focused?: boolean; + incognito?: boolean; type?: string; left?: number; } interface UpdateInfo { top?: number; - drawAttention?: bool; + drawAttention?: boolean; height?: number; width?: number; state?: string; - focused?: bool; + focused?: boolean; left?: number; } diff --git a/express/express.d.ts b/express/express.d.ts index 8e19ab004..ea7ebdf38 100644 --- a/express/express.d.ts +++ b/express/express.d.ts @@ -25,7 +25,7 @@ interface Route { * Check if this route matches `path`, if so * populate `.params`. */ - match(path: string): bool; + match(path: string): boolean; } declare var Route: { /** @@ -51,12 +51,12 @@ interface Handler { interface CookieOptions { maxAge?: number; - signed?: bool; + signed?: boolean; expires?: Date; - httpOnly?: bool; + httpOnly?: boolean; path?: string; domain?: string; - secure?: bool; + secure?: boolean; } interface Errback { (err: Error): void; } @@ -193,7 +193,7 @@ interface ExpressServerRequest { * * @param charset */ - acceptsCharset(charset: string): bool; + acceptsCharset(charset: string): boolean; /** * Check if the given `lang` is acceptable, @@ -201,7 +201,7 @@ interface ExpressServerRequest { * * @param lang */ - acceptsLanguage(lang: string): bool; + acceptsLanguage(lang: string): boolean; /** * Parse Range header field, @@ -300,7 +300,7 @@ interface ExpressServerRequest { * * @param type */ - is(type: string): bool; + is(type: string): boolean; /** * Return the protocol string "http" or "https" @@ -317,7 +317,7 @@ interface ExpressServerRequest { * * req.protocol == 'https' */ - secure: bool; + secure: boolean; /** * Return the remote address, or when @@ -375,24 +375,24 @@ interface ExpressServerRequest { * Last-Modified and/or the ETag * still match. */ - fresh: bool; + fresh: boolean; /** * Check if the request is stale, aka * "Last-Modified" and / or the "ETag" for the * resource has changed. */ - stale: bool; + stale: boolean; /** * Check if the request was an _XMLHttpRequest_. */ - xhr: bool; + xhr: boolean; - //body: { username: string; password: string; remember: bool; title: string; }; + //body: { username: string; password: string; remember: boolean; title: string; }; body: any; - //cookies: { string; remember: bool; }; + //cookies: { string; remember: boolean; }; cookies: any; method: string; @@ -906,7 +906,7 @@ interface ExpressApplication { * app.enabled('foo') * // => true */ - enabled(setting: string): bool; + enabled(setting: string): boolean; /** * Check if `setting` is disabled. @@ -920,7 +920,7 @@ interface ExpressApplication { * * @param setting */ - disabled(setting: string): bool; + disabled(setting: string): boolean; /** * Enable `setting`. @@ -1951,4 +1951,4 @@ declare module "express" { export function urlencoded(): any; export function multipart(): any; -} \ No newline at end of file +} diff --git a/filesystem/filesystem.d.ts b/filesystem/filesystem.d.ts index 90b159f75..54cf27b1f 100644 --- a/filesystem/filesystem.d.ts +++ b/filesystem/filesystem.d.ts @@ -88,12 +88,12 @@ interface Flags { /** * Used to indicate that the user wants to create a file or directory if it was not previously there. */ - create?:bool; + create?:boolean; /** * By itself, exclusive must have no effect. Used with create, it must cause getFile and getDirectory to fail if the target path already exists. */ - exclusive?:bool; + exclusive?:boolean; } /** @@ -118,12 +118,12 @@ interface Entry { /** * Entry is a file. */ - isFile:bool; + isFile:boolean; /** * Entry is a directory. */ - isDirectory:bool; + isDirectory:boolean; /** * Look up metadata about this entry. @@ -373,13 +373,13 @@ interface EntrySync{ * EntrySync is a file. * @readonly */ - isFile:bool; + isFile:boolean; /** * EntrySync is a directory. * @readonly */ - isDirectory:bool; + isDirectory:boolean; /** * Look up metadata about this entry. diff --git a/linq/linq.d.ts b/linq/linq.d.ts index ead5a5ea8..6cee18a08 100644 --- a/linq/linq.d.ts +++ b/linq/linq.d.ts @@ -49,7 +49,7 @@ module linq { SelectMany(collectionSelector: ($, i: number) => any[], resultSelector?: ($, item) => any): Enumerable; SelectMany(collectionSelector: ($, i: number) => Enumerable, resultSelector?: ($, item) => any): Enumerable; SelectMany(collectionSelector: string, resultSelector?: string): Enumerable; - Where(predicate: ($, i: number) => bool): Enumerable; + Where(predicate: ($, i: number) => boolean): Enumerable; Where(predicate: string): Enumerable; OfType(type: Function): Enumerable; Zip(second: any[], selector: (v1, v2, i: number) => any): Enumerable; @@ -66,17 +66,17 @@ module linq { GroupJoin(inner: Enumerable, outerKeySelector: (v1) => any, innerKeySelector: (v1) => any, resultSelector: (v1, v2: Enumerable) => any, compareSelector?: (v) => any): Enumerable; GroupJoin(inner: Enumerable, outerKeySelector: string, innerKeySelector: string, resultSelector: string, compareSelector?: string): Enumerable; //Set Methods - All(predicate: ($) => bool): bool; - All(predicate: string): bool; - Any(predicate?: ($) => bool): bool; - Any(predicate?: string): bool; + All(predicate: ($) => boolean): boolean; + All(predicate: string): boolean; + Any(predicate?: ($) => boolean): boolean; + Any(predicate?: string): boolean; Concat(second: any[]): Enumerable; Concat(second: Enumerable): Enumerable; Insert(index: number, second: any[]): Enumerable; Insert(index: number, second: Enumerable): Enumerable; Alternate(value): Enumerable; - Contains(value, compareSelector?: ($) => any): bool; - Contains(value, compareSelector?: string): bool; + Contains(value, compareSelector?: ($) => any): boolean; + Contains(value, compareSelector?: string): boolean; DefaultIfEmpty(defaultValue): Enumerable; Distinct(compareSelector?: ($) => any): Enumerable; Distinct(compareSelector?: string): Enumerable; @@ -88,10 +88,10 @@ module linq { Intersect(second: any[], compareSelector?: string): Enumerable; Intersect(second: Enumerable, compareSelector?: ($) => any): Enumerable; Intersect(second: Enumerable, compareSelector?: string): Enumerable; - SequenceEqual(second: any[], compareSelector?: ($) => any): bool; - SequenceEqual(second: any[], compareSelector?: string): bool; - SequenceEqual(second: Enumerable, compareSelector?: ($) => any): bool; - SequenceEqual(second: Enumerable, compareSelector?: string): bool; + SequenceEqual(second: any[], compareSelector?: ($) => any): boolean; + SequenceEqual(second: any[], compareSelector?: string): boolean; + SequenceEqual(second: Enumerable, compareSelector?: ($) => any): boolean; + SequenceEqual(second: Enumerable, compareSelector?: string): boolean; Union(second: any[], compareSelector?: ($) => any): Enumerable; Union(second: any[], compareSelector?: string): Enumerable; Union(second: Enumerable, compareSelector?: ($) => any): Enumerable; @@ -116,7 +116,7 @@ module linq { Aggregate(seed, func: string, resultSelector?: string); Average(selector?: ($) => number): number; Average(selector?: string): number; - Count(predicate?: ($) => bool): number; + Count(predicate?: ($) => boolean): number; Count(predicate?: string): number; Max(selector?: ($) => number): number; Max(selector?: string): number; @@ -131,23 +131,23 @@ module linq { //Paging Methods ElementAt(index: number): any; ElementAtOrDefault(index: number, defaultValue): any; - First(predicate?: ($) => bool): any; + First(predicate?: ($) => boolean): any; First(predicate?: string): any; - FirstOrDefault(defaultValue, predicate?: ($) => bool): any; + FirstOrDefault(defaultValue, predicate?: ($) => boolean): any; FirstOrDefault(defaultValue, predicate?: string): any; - Last(predicate?: ($) => bool): any; + Last(predicate?: ($) => boolean): any; Last(predicate?: string): any; - LastOrDefault(defaultValue, predicate?: ($) => bool): any; + LastOrDefault(defaultValue, predicate?: ($) => boolean): any; LastOrDefault(defaultValue, predicate?: string): any; - Single(predicate?: ($) => bool): any; + Single(predicate?: ($) => boolean): any; Single(predicate?: string): any; - SingleOrDefault(defaultValue, predicate?: ($) => bool): any; + SingleOrDefault(defaultValue, predicate?: ($) => boolean): any; SingleOrDefault(defaultValue, predicate?: string): any; Skip(count: number): Enumerable; - SkipWhile(predicate: ($, i: number) => bool): Enumerable; + SkipWhile(predicate: ($, i: number) => boolean): Enumerable; SkipWhile(predicate: string): Enumerable; Take(count: number): Enumerable; - TakeWhile(predicate: ($, i: number) => bool): Enumerable; + TakeWhile(predicate: ($, i: number) => boolean): Enumerable; TakeWhile(predicate: string): Enumerable; TakeExceptLast(count?: number): Enumerable; TakeFromLast(count: number): Enumerable; @@ -169,7 +169,7 @@ module linq { Do(action: ($, i: number) => void ): Enumerable; Do(action: string): Enumerable; ForEach(action: ($, i: number) => void ): void; - ForEach(func: ($, i: number) => bool): void; + ForEach(func: ($, i: number) => boolean): void; ForEach(action_func: string): void; Write(separator?: string, selector?: ($) =>any): void; Write(separator?: string, selector?: string): void; @@ -203,15 +203,15 @@ module linq { interface Lookup { Count(): number; Get(key): Enumerable; - Contains(key): bool; + Contains(key): boolean; ToEnumerable(): Enumerable; } interface Dictionary { Add(key, value): void; Get(key): any; - Set(key, value): bool; - Contains(key): bool; + Set(key, value): boolean; + Contains(key): boolean; Clear(): void; Remove(key): void; Count(): number; @@ -219,4 +219,4 @@ module linq { } } -declare var Enumerable: linq.EnumerableStatic; \ No newline at end of file +declare var Enumerable: linq.EnumerableStatic; diff --git a/node/node.d.ts b/node/node.d.ts index 05208ed6f..565263d03 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -12,17 +12,6 @@ declare var process: NodeProcess; declare var global: any; -declare var console: { - log(...data: any[]): void; - info(...data: any[]): void; - error(...data: any[]): void; - warn(...data: any[]): void; - dir(obj: any): void; - timeEnd(label: string): void; - trace(label: string): void; - assert(expression: any, ...message: string[]): void; -} - declare var __filename: string; declare var __dirname: string; @@ -46,7 +35,7 @@ declare var module: { require(id: string): any; id: string; filename: string; - loaded: bool; + loaded: boolean; parent: any; children: any[]; } @@ -58,7 +47,7 @@ declare var SlowBuffer: { new (size: number): NodeBuffer; new (array: any[]): NodeBuffer; prototype: NodeBuffer; - isBuffer(obj: any): bool; + isBuffer(obj: any): boolean; byteLength(string: string, encoding?: string): number; concat(list: NodeBuffer[], totalLength?: number): NodeBuffer; }; @@ -67,7 +56,7 @@ declare var Buffer: { new (size: number): NodeBuffer; new (array: any[]): NodeBuffer; prototype: NodeBuffer; - isBuffer(obj: any): bool; + isBuffer(obj: any): boolean; byteLength(string: string, encoding?: string): number; concat(list: NodeBuffer[], totalLength?: number): NodeBuffer; } @@ -90,9 +79,9 @@ interface EventEmitter { } interface WritableStream extends EventEmitter { - writable: bool; - write(str: string, encoding?: string, fd?: string): bool; - write(buffer: NodeBuffer): bool; + writable: boolean; + write(str: string, encoding?: string, fd?: string): boolean; + write(buffer: NodeBuffer): boolean; end(): void; end(str: string, enconding: string): void; end(buffer: NodeBuffer): void; @@ -101,12 +90,12 @@ interface WritableStream extends EventEmitter { } interface ReadableStream extends EventEmitter { - readable: bool; + readable: boolean; setEncoding(encoding: string): void; pause(): void; resume(): void; destroy(): void; - pipe(destination: WritableStream, options?: { end?: bool; }): void; + pipe(destination: WritableStream, options?: { end?: boolean; }): void; } interface NodeProcess extends EventEmitter { @@ -139,18 +128,18 @@ interface NodeProcess extends EventEmitter { variables: { clang: number; host_arch: string; - node_install_npm: bool; - node_install_waf: bool; + node_install_npm: boolean; + node_install_waf: boolean; node_prefix: string; - node_shared_openssl: bool; - node_shared_v8: bool; - node_shared_zlib: bool; - node_use_dtrace: bool; - node_use_etw: bool; - node_use_openssl: bool; + node_shared_openssl: boolean; + node_shared_v8: boolean; + node_shared_zlib: boolean; + node_use_dtrace: boolean; + node_use_etw: boolean; + node_use_openssl: boolean; target_arch: string; v8_no_strict_aliasing: number; - v8_use_snapshot: bool; + v8_use_snapshot: boolean; visibility: string; }; }; @@ -174,34 +163,34 @@ interface NodeBuffer { length: number; copy(targetBuffer: NodeBuffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): void; slice(start?: number, end?: number): NodeBuffer; - readUInt8(offset: number, noAsset?: bool): number; - readUInt16LE(offset: number, noAssert?: bool): number; - readUInt16BE(offset: number, noAssert?: bool): number; - readUInt32LE(offset: number, noAssert?: bool): number; - readUInt32BE(offset: number, noAssert?: bool): number; - readInt8(offset: number, noAssert?: bool): number; - readInt16LE(offset: number, noAssert?: bool): number; - readInt16BE(offset: number, noAssert?: bool): number; - readInt32LE(offset: number, noAssert?: bool): number; - readInt32BE(offset: number, noAssert?: bool): number; - readFloatLE(offset: number, noAssert?: bool): number; - readFloatBE(offset: number, noAssert?: bool): number; - readDoubleLE(offset: number, noAssert?: bool): number; - readDoubleBE(offset: number, noAssert?: bool): number; - writeUInt8(value: number, offset: number, noAssert?: bool): void; - writeUInt16LE(value: number, offset: number, noAssert?: bool): void; - writeUInt16BE(value: number, offset: number, noAssert?: bool): void; - writeUInt32LE(value: number, offset: number, noAssert?: bool): void; - writeUInt32BE(value: number, offset: number, noAssert?: bool): void; - writeInt8(value: number, offset: number, noAssert?: bool): void; - writeInt16LE(value: number, offset: number, noAssert?: bool): void; - writeInt16BE(value: number, offset: number, noAssert?: bool): void; - writeInt32LE(value: number, offset: number, noAssert?: bool): void; - writeInt32BE(value: number, offset: number, noAssert?: bool): void; - writeFloatLE(value: number, offset: number, noAssert?: bool): void; - writeFloatBE(value: number, offset: number, noAssert?: bool): void; - writeDoubleLE(value: number, offset: number, noAssert?: bool): void; - writeDoubleBE(value: number, offset: number, noAssert?: bool): void; + readUInt8(offset: number, noAsset?: boolean): number; + readUInt16LE(offset: number, noAssert?: boolean): number; + readUInt16BE(offset: number, noAssert?: boolean): number; + readUInt32LE(offset: number, noAssert?: boolean): number; + readUInt32BE(offset: number, noAssert?: boolean): number; + readInt8(offset: number, noAssert?: boolean): number; + readInt16LE(offset: number, noAssert?: boolean): number; + readInt16BE(offset: number, noAssert?: boolean): number; + readInt32LE(offset: number, noAssert?: boolean): number; + readInt32BE(offset: number, noAssert?: boolean): number; + readFloatLE(offset: number, noAssert?: boolean): number; + readFloatBE(offset: number, noAssert?: boolean): number; + readDoubleLE(offset: number, noAssert?: boolean): number; + readDoubleBE(offset: number, noAssert?: boolean): number; + writeUInt8(value: number, offset: number, noAssert?: boolean): void; + writeUInt16LE(value: number, offset: number, noAssert?: boolean): void; + writeUInt16BE(value: number, offset: number, noAssert?: boolean): void; + writeUInt32LE(value: number, offset: number, noAssert?: boolean): void; + writeUInt32BE(value: number, offset: number, noAssert?: boolean): void; + writeInt8(value: number, offset: number, noAssert?: boolean): void; + writeInt16LE(value: number, offset: number, noAssert?: boolean): void; + writeInt16BE(value: number, offset: number, noAssert?: boolean): void; + writeInt32LE(value: number, offset: number, noAssert?: boolean): void; + writeInt32BE(value: number, offset: number, noAssert?: boolean): void; + writeFloatLE(value: number, offset: number, noAssert?: boolean): void; + writeFloatBE(value: number, offset: number, noAssert?: boolean): void; + writeDoubleLE(value: number, offset: number, noAssert?: boolean): void; + writeDoubleBE(value: number, offset: number, noAssert?: boolean): void; fill(value: any, offset?: number, end?: number): void; INSPECT_MAX_BYTES: number; } @@ -267,15 +256,15 @@ declare module "http" { } export interface ServerResponse extends events.NodeEventEmitter, stream.WritableStream { // Extended base methods - write(str: string, encoding?: string, fd?: string): bool; - write(buffer: NodeBuffer): bool; + write(str: string, encoding?: string, fd?: string): boolean; + write(buffer: NodeBuffer): boolean; writeContinue(): void; writeHead(statusCode: number, reasonPhrase?: string, headers?: any): void; writeHead(statusCode: number, headers?: any): void; statusCode: number; setHeader(name: string, value: string): void; - sendDate: bool; + sendDate: boolean; getHeader(name: string): string; removeHeader(name: string): void; write(chunk: any, encoding?: string): any; @@ -284,15 +273,15 @@ declare module "http" { } export interface ClientRequest extends events.NodeEventEmitter, stream.WritableStream { // Extended base methods - write(str: string, encoding?: string, fd?: string): bool; - write(buffer: NodeBuffer): bool; + write(str: string, encoding?: string, fd?: string): boolean; + write(buffer: NodeBuffer): boolean; write(chunk: any, encoding?: string): void; end(data?: any, encoding?: string): void; abort(): void; setTimeout(timeout: number, callback?: Function): void; setNoDelay(noDelay?: Function): void; - setSocketKeepAlive(enable?: bool, initialDelay?: number): void; + setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; } export interface ClientResponse extends events.NodeEventEmitter, stream.ReadableStream { statusCode: number; @@ -319,12 +308,12 @@ declare module "cluster" { export interface ClusterSettings { exec: string; args: string[]; - silent: bool; + silent: boolean; } export interface Worker { id: string; process: child_process; - suicide: bool; + suicide: boolean; send(message: any, sendHandle?: any): void; destroy(): void; disconnect(): void; @@ -332,8 +321,8 @@ declare module "cluster" { export var settings: ClusterSettings; - export var isMaster: bool; - export var isWorker: bool; + export var isMaster: boolean; + export var isWorker: boolean; export function setupMaster(settings?: ClusterSettings): void; export function fork(env?: any): Worker; export function disconnect(callback?: Function): void; @@ -441,9 +430,9 @@ declare module "https" { ca?: any; crl?: any; ciphers?: string; - honorCipherOrder?: bool; - requestCert?: bool; - rejectUnauthorized?: bool; + honorCipherOrder?: boolean; + requestCert?: boolean; + rejectUnauthorized?: boolean; NPNProtocols?: any; SNICallback?: (servername: string) => any; } @@ -463,7 +452,7 @@ declare module "https" { cert?: any; ca?: any; ciphers?: string; - rejectUnauthorized?: bool; + rejectUnauthorized?: boolean; } export interface NodeAgent { @@ -502,11 +491,11 @@ declare module "repl" { prompt?: string; input?: stream.ReadableStream; output?: stream.WritableStream; - terminal?: bool; + terminal?: boolean; eval?: Function; - useColors?: bool; - useGlobal?: bool; - ignoreUndefined?: bool; + useColors?: boolean; + useGlobal?: boolean; + ignoreUndefined?: boolean; writer?: Function; } export function start(options: ReplOptions): events.NodeEventEmitter; @@ -518,7 +507,7 @@ declare module "readline" { export interface ReadLine extends events.NodeEventEmitter { setPrompt(prompt: string, length: number): void; - prompt(preserveCursor?: bool): void; + prompt(preserveCursor?: boolean): void; question(query: string, callback: Function): void; pause(): void; resume(): void; @@ -529,7 +518,7 @@ declare module "readline" { input: stream.ReadableStream; output: stream.WritableStream; completer?: Function; - terminal?: bool; + terminal?: boolean; } export function createInterface(options: ReadLineOptions): ReadLine; } @@ -566,7 +555,7 @@ declare module "child_process" { stdio?: any; custom?: any; env?: any; - detached?: bool; + detached?: boolean; }): ChildProcess; export function exec(command: string, options: { cwd?: string; @@ -607,7 +596,7 @@ declare module "url" { pathname: string; search: string; query: string; - slashes: bool; + slashes: boolean; } export function parse(urlStr: string, parseQueryString? , slashesDenoteHost? ): Url; @@ -635,8 +624,8 @@ declare module "net" { export interface NodeSocket extends stream.ReadWriteStream { // Extended base methods - write(str: string, encoding?: string, fd?: string): bool; - write(buffer: NodeBuffer): bool; + write(str: string, encoding?: string, fd?: string): boolean; + write(buffer: NodeBuffer): boolean; connect(port: number, host?: string, connectionListener?: Function): void; connect(path: string, connectionListener?: Function): void; @@ -648,8 +637,8 @@ declare module "net" { pause(): void; resume(): void; setTimeout(timeout: number, callback?: Function): void; - setNoDelay(noDelay?: bool): void; - setKeepAlive(enable?: bool, initialDelay?: number): void; + setNoDelay(noDelay?: boolean): void; + setKeepAlive(enable?: boolean, initialDelay?: number): void; address(): { port: number; family: string; address: string; }; remoteAddress: string; remotePort: number; @@ -658,7 +647,7 @@ declare module "net" { } export var Socket: { - new (options?: { fd?: string; type?: string; allowHalfOpen?: bool; }): NodeSocket; + new (options?: { fd?: string; type?: string; allowHalfOpen?: boolean; }): NodeSocket; }; export interface Server extends NodeSocket { @@ -671,16 +660,16 @@ declare module "net" { connections: number; } export function createServer(connectionListener?: (socket: NodeSocket) =>void ): Server; - export function createServer(options?: { allowHalfOpen?: bool; }, connectionListener?: (socket: NodeSocket) =>void ): Server; - export function connect(options: { allowHalfOpen?: bool; }, connectionListener?: Function): void; + export function createServer(options?: { allowHalfOpen?: boolean; }, connectionListener?: (socket: NodeSocket) =>void ): Server; + export function connect(options: { allowHalfOpen?: boolean; }, connectionListener?: Function): void; export function connect(port: number, host?: string, connectionListener?: Function): void; export function connect(path: string, connectionListener?: Function): void; - export function createConnection(options: { allowHalfOpen?: bool; }, connectionListener?: Function): void; + export function createConnection(options: { allowHalfOpen?: boolean; }, connectionListener?: Function): void; export function createConnection(port: number, host?: string, connectionListener?: Function): void; export function createConnection(path: string, connectionListener?: Function): void; export function isIP(input: string): number; - export function isIPv4(input: string): bool; - export function isIPv6(input: string): bool; + export function isIPv4(input: string): boolean; + export function isIPv6(input: string): boolean; } declare module "dgram" { @@ -693,9 +682,9 @@ declare module "dgram" { bind(port: number, address?: string): void; close(): void; address: { address: string; family: string; port: number; }; - setBroadcast(flag: bool): void; + setBroadcast(flag: boolean): void; setMulticastTTL(ttl: number): void; - setMulticastLoopback(flag: bool): void; + setMulticastLoopback(flag: boolean): void; addMembership(multicastAddress: string, multicastInterface?: string): void; dropMembership(multicastAddress: string, multicastInterface?: string): void; } @@ -705,13 +694,13 @@ declare module "fs" { import stream = module("stream"); interface Stats { - isFile(): bool; - isDirectory(): bool; - isBlockDevice(): bool; - isCharacterDevice(): bool; - isSymbolicLink(): bool; - isFIFO(): bool; - isSocket(): bool; + isFile(): boolean; + isDirectory(): boolean; + isBlockDevice(): boolean; + isCharacterDevice(): boolean; + isSymbolicLink(): boolean; + isFIFO(): boolean; + isSocket(): boolean; dev: number; ino: number; mode: number; @@ -797,11 +786,11 @@ declare module "fs" { export function appendFile(filename: string, data: any, callback?: (err) => void): void; export function appendFileSync(filename: string, data: any, options?: { encoding?: string; mode?: number; flag?: string; }): void; export function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void; - export function watchFile(filename: string, options: { persistent?: bool; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void; + export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void; export function unwatchFile(filename: string, listener?: Stats): void; - export function watch(filename: string, options?: { persistent?: bool; }, listener?: (event: string, filename: string) =>any): FSWatcher; - export function exists(path: string, callback?: (exists: bool) =>void ): void; - export function existsSync(path: string): bool; + export function watch(filename: string, options?: { persistent?: boolean; }, listener?: (event: string, filename: string) =>any): FSWatcher; + export function exists(path: string, callback?: (exists: boolean) =>void ): void; + export function existsSync(path: string): boolean; export function createReadStream(path: string, options?: { flags?: string; encoding?: string; @@ -858,8 +847,8 @@ declare module "tls" { crl?: any; //string or string array ciphers?: string; honorCipherOrder?: any; - requestCert?: bool; - rejectUnauthorized?: bool; + requestCert?: boolean; + rejectUnauthorized?: boolean; NPNProtocols?: any; //array or Buffer; SNICallback?: (servername: string) => any; } @@ -873,7 +862,7 @@ declare module "tls" { passphrase?: string; cert?: any; //string | Buffer ca?: any; //Array of string | Buffer - rejectUnauthorized?: bool; + rejectUnauthorized?: boolean; NPNProtocols?: any; //Array of string | Buffer servername?: string; } @@ -897,7 +886,7 @@ declare module "tls" { } export interface ClearTextStream extends stream.ReadWriteStream { - authorized: bool; + authorized: boolean; authorizationError: Error; getPeerCertificate(): any; getCipher: { @@ -922,7 +911,7 @@ declare module "tls" { export function connect(options: TlsOptions, secureConnectionListener?: () =>void ): ClearTextStream; export function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream; export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () =>void ): ClearTextStream; - export function createSecurePair(credentials?: crypto.Credentials, isServer?: bool, requestCert?: bool, rejectUnauthorized?: bool): SecurePair; + export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair; } declare module "crypto" { @@ -952,14 +941,14 @@ declare module "crypto" { interface Cipher { update(data: any, input_encoding?: string, output_encoding?: string): string; final(output_encoding?: string): string; - setAutoPadding(auto_padding: bool): void; + setAutoPadding(auto_padding: boolean): void; createDecipher(algorithm: string, password: any): Decipher; createDecipheriv(algorithm: string, key: any, iv: any): Decipher; } interface Decipher { update(data: any, input_encoding?: string, output_encoding?: string): void; final(output_encoding?: string): string; - setAutoPadding(auto_padding: bool): void; + setAutoPadding(auto_padding: boolean): void; } export function createSign(algorithm: string): Signer; interface Signer { @@ -969,7 +958,7 @@ declare module "crypto" { export function createVerify(algorith: string): Verify; interface Verify { update(data: any): void; - verify(object: string, signature: string, signature_format?: string): bool; + verify(object: string, signature: string, signature_format?: string): boolean; } export function createDiffieHellman(prime_length: number): DiffieHellman; export function createDiffieHellman(prime: number, encoding?: string): DiffieHellman; @@ -992,9 +981,9 @@ declare module "stream" { import events = module("events"); export interface WritableStream extends events.NodeEventEmitter { - writable: bool; - write(str: string, encoding?: string, fd?: string): bool; - write(buffer: NodeBuffer): bool; + writable: boolean; + write(str: string, encoding?: string, fd?: string): boolean; + write(buffer: NodeBuffer): boolean; end(): void; end(str: string, enconding: string): void; end(buffer: NodeBuffer): void; @@ -1003,12 +992,12 @@ declare module "stream" { } export interface ReadableStream extends events.NodeEventEmitter { - readable: bool; + readable: boolean; setEncoding(encoding: string): void; pause(): void; resume(): void; destroy(): void; - pipe(destination: WritableStream, options?: { end?: bool; }): void; + pipe(destination: WritableStream, options?: { end?: boolean; }): void; } export interface ReadWriteStream extends ReadableStream, WritableStream { } @@ -1021,16 +1010,16 @@ declare module "util" { export function puts(...param: any[]): void; export function print(...param: any[]): void; export function log(string: string): void; - export function inspect(object: any, showHidden?: bool, depth?: number, color?: bool): void; - export function isArray(object: any): bool; - export function isRegExp(object: any): bool; - export function isDate(object: any): bool; - export function isError(object: any): bool; + export function inspect(object: any, showHidden?: boolean, depth?: number, color?: boolean): void; + export function isArray(object: any): boolean; + export function isRegExp(object: any): boolean; + export function isDate(object: any): boolean; + export function isError(object: any): boolean; export function inherits(constructor: any, superConstructor: any): void; } declare module "assert" { - export function (booleanValue: bool, message?: string); + export function (booleanValue: boolean, message?: string); export function fail(actual: any, expected: any, message: string, operator: string): void; export function assert(value: any, message: string): void; export function ok(value: any, message?: string): void; @@ -1048,10 +1037,10 @@ declare module "assert" { declare module "tty" { import net = module("net"); - export function isatty(fd: string): bool; + export function isatty(fd: string): boolean; export interface ReadStream extends net.NodeSocket { - isRaw: bool; - setRawMode(mode: bool): void; + isRaw: boolean; + setRawMode(mode: boolean): void; } export interface WriteStream extends net.NodeSocket { columns: number;