Skip to content

Commit d35c031

Browse files
Use union types where appropriately hinted in 'ckeditor'.
1 parent 14590ab commit d35c031

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

ckeditor/ckeditor.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ declare module CKEDITOR {
628628
data: Function;
629629
defaults: Object;
630630
dialog: String;
631-
downcast: any; // should be string | Function
631+
downcast: string | Function;
632632
downcasts: Object;
633633
draggable: boolean;
634634
editables: Object;
@@ -643,16 +643,16 @@ declare module CKEDITOR {
643643
styleToAllowedContentRules: Function;
644644
styleableElements: string;
645645
template: string;
646-
upcast: any; // should be string | Function
646+
upcast: string | Function;
647647
upcasts: Object;
648648

649649
addClass(className: string): void;
650650
applyStyle(style: any): void; // any should be CKEDITOR.style
651651
capture(): void;
652652
checkStyleActive(style: any): boolean; // any should be CKEDITOR.style
653-
define(name: string, meta: {errorProof?: boolean}): void;
653+
define(name: string, meta: { errorProof?: boolean }): void;
654654
destroy(offline?: boolean): void;
655-
destroyEditable(editableName:string, offline?: boolean): void;
655+
destroyEditable(editableName: string, offline?: boolean): void;
656656
edit(): boolean;
657657
fire(eventName: string, data?: Object, editor?: editor): any; // should be boolean | Object
658658
fireOnce(eventName: string, data?: Object, editor?: editor): any; // should be boolean | Object
@@ -670,7 +670,7 @@ declare module CKEDITOR {
670670
removeClass(className: string): void;
671671
removeListener(evnetName: string, listenerFunction: Function): void;
672672
removeStyle(style: any): void; // any should be CKEDITOR.style
673-
setData(keyOrData: any, value?: Object): IWidget; // any should be string | Object
673+
setData(keyOrData: string | {}, value?: Object): IWidget;
674674
setFocused(selected: boolean): IWidget;
675675
setSelected(selected: boolean): IWidget;
676676
toFeature(): any; // should be CKEDITOR.feature
@@ -685,7 +685,7 @@ declare module CKEDITOR {
685685
data?: Function;
686686
defaults?: Object;
687687
dialog?: String;
688-
downcast?: any; // should be string | Function
688+
downcast?: string | Function;
689689
downcasts?: Object;
690690
draggable?: boolean;
691691
edit?: Function;
@@ -701,7 +701,7 @@ declare module CKEDITOR {
701701
styleToAllowedContentRules?: Function;
702702
styleableElements?: string;
703703
template?: string;
704-
upcast?: any; // should be string | Function
704+
upcast?: string | Function;
705705
upcasts?: Object;
706706
toFeature?(): any; // should be CKEDITOR.feature
707707
}
@@ -732,8 +732,8 @@ declare module CKEDITOR {
732732

733733
interface IPluginDefinition {
734734
hidpi?: boolean;
735-
lang?: any; // should be string | string[]
736-
requires?: any; // should be string | string[]a
735+
lang?: string | string[];
736+
requires?: string | string[];
737737
afterInit?(editor: editor): any;
738738
beforeInit?(editor: editor): any;
739739
init?(editor: editor): any;

0 commit comments

Comments
 (0)