Is there a way to override the var declaration in the d.ts file?
initTaggingControls() { RTE.CanvasEvents.registerListener(RTE.CanvasEvents.editableRegionChangedEvent, Function.createDelegate(null, this.onCustomTextChanged)); RTE.CanvasEvents.registerListener(RTE.CanvasEvents.editableRegionBlurEvent, Function.createDelegate(null, this.onCustomTextChanged)); RTE.CanvasEvents.registerListener(RTE.CanvasEvents.editableRegionFocusEvent, Function.createDelegate(null, this.onCustomTextChanged)); }
RTE is part of SharePoint. declare var RTE: any; does the trick. The problem is Function.createDelegate , because I cannot declare or redo it.
Function var is already declared in lib.d.ts. Is there a way to override the var declaration to add custom methods?
Function.createDelegate is part of the Microsoft ajax Library.
source share