mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Big replacement: bool with boolean
This commit is contained in:
+16
-16
@@ -6,10 +6,10 @@
|
||||
|
||||
interface JSONEditorOptions {
|
||||
change?: () => void;
|
||||
history?: bool;
|
||||
history?: boolean;
|
||||
mode?: string;
|
||||
name?: string;
|
||||
search?: bool;
|
||||
search?: boolean;
|
||||
}
|
||||
|
||||
declare class JSONEditorHistory {
|
||||
@@ -17,15 +17,15 @@ declare class JSONEditorHistory {
|
||||
onChange(): void;
|
||||
add(action: string, params: Object);
|
||||
clear(): void;
|
||||
canUndo(): bool;
|
||||
canRedo(): bool;
|
||||
canUndo(): boolean;
|
||||
canRedo(): boolean;
|
||||
undo(): void;
|
||||
redo(): void;
|
||||
}
|
||||
|
||||
interface JSONEditorNodeUpdateDomOptions {
|
||||
recurse?: bool;
|
||||
updateIndexes?: bool;
|
||||
recurse?: boolean;
|
||||
updateIndexes?: boolean;
|
||||
}
|
||||
|
||||
interface JSONEditorNodeType {
|
||||
@@ -36,7 +36,7 @@ interface JSONEditorNodeType {
|
||||
|
||||
interface JSONEditorConstructorParams {
|
||||
field?: string;
|
||||
fieldEditable?: bool;
|
||||
fieldEditable?: boolean;
|
||||
value?: any;
|
||||
}
|
||||
|
||||
@@ -44,14 +44,14 @@ declare class JSONEditorNode {
|
||||
constructor(editor: JSONEditor, params: JSONEditorConstructorParams);
|
||||
setParent(parent: JSONEditorNode): void;
|
||||
getParent(): JSONEditorNode;
|
||||
setField(field: string, fieldEditable: bool): void;
|
||||
setField(field: string, fieldEditable: boolean): void;
|
||||
getField(): string;
|
||||
setValue(value: any): void;
|
||||
getValue(): any;
|
||||
getLevel(): number;
|
||||
clone(): JSONEditorNode;
|
||||
expand(recurse: bool): void;
|
||||
collapse(recurse: bool): void;
|
||||
expand(recurse: boolean): void;
|
||||
collapse(recurse: boolean): void;
|
||||
showChilds(): void;
|
||||
hide(): void;
|
||||
hideChilds(): void;
|
||||
@@ -63,12 +63,12 @@ declare class JSONEditorNode {
|
||||
scrollTo(): void;
|
||||
focus(): void;
|
||||
blur(): void;
|
||||
containsNode(node: JSONEditorNode): bool;
|
||||
containsNode(node: JSONEditorNode): boolean;
|
||||
removeChild(node: JSONEditorNode): JSONEditorNode;
|
||||
changeType(newType: string): void;
|
||||
clearDom(): void;
|
||||
getDom(): HTMLElement;
|
||||
setHighlight(highlight: bool): void;
|
||||
setHighlight(highlight: boolean): void;
|
||||
updateValue(value: any): void;
|
||||
updateField(field: string): void;
|
||||
updateDom(options): void;
|
||||
@@ -100,7 +100,7 @@ declare class JSONEditorSearchBox {
|
||||
focusActiveResult(): void;
|
||||
clearDelay(): void;
|
||||
onDelayedSearch(event: Event): void;
|
||||
onSearch(event: Event, forcedSearch: bool): void;
|
||||
onSearch(event: Event, forcedSearch: boolean): void;
|
||||
onKeyDown(event: Event): void;
|
||||
onKeyUp(event: Event): void;
|
||||
}
|
||||
@@ -143,7 +143,7 @@ declare class JSONEditor {
|
||||
Node: JSONEditorNode;
|
||||
SearchBox: JSONEditorSearchBox;
|
||||
static focusNode: JSONEditorNode;
|
||||
static freezeHighlight: bool;
|
||||
static freezeHighlight: boolean;
|
||||
static showDropDownList(params): void;
|
||||
static getNodeFromTarget(target: HTMLElement): JSONEditorNode;
|
||||
static getAbsoluteLeft(elem: HTMLElement): number;
|
||||
@@ -155,8 +155,8 @@ declare class JSONEditor {
|
||||
static getInnerText(element: HTMLElement, buffer: JSONEditorBuffer): string;
|
||||
static getInternetExplorerVersion(): number;
|
||||
Events: {
|
||||
addEventListener(element: HTMLElement, action: string, listener:(event?: Event) => void, useCapture:bool): (event?: Event) => void;
|
||||
removeEventListener(element: HTMLElement, action: string, listener:(event?: Event) => void, useCapture:bool): void;
|
||||
addEventListener(element: HTMLElement, action: string, listener:(event?: Event) => void, useCapture:boolean): (event?: Event) => void;
|
||||
removeEventListener(element: HTMLElement, action: string, listener:(event?: Event) => void, useCapture:boolean): void;
|
||||
stopPropagation(event: Event): void;
|
||||
preventDefault(event:Event): void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user