-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmy.d.ts
50 lines (46 loc) · 1.52 KB
/
my.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*!
* @file
* typescript global type definitions
*
* @summary extends KnockoutStatic type and declares a global Require function
*
* link: http://simperfactory.visualstudio.com/_git/NWJS-AdobeCEP/app/scripts/moncaoEditorBindinghanlder.ts
* https://stackoverflow.com/questions/16204142/how-do-i-define-a-knockout-binding-handler-in-typescript
*
* Author: TSimper
* Created: 2017-10-22 at 4:22 PM
* Name: moncaoEditorBindinghanlder.ts
*
* Copyright (c) 2017 SimperFactory
*/
/**
* extend the Knockout.KnockoutBindingHandlers namespace
* @interface KnockoutBindingHandlers
*/
interface KnockoutBindingHandlers
{
/**
* custom knockout binding handler to create monaco code editor instances and bind code editing value to a
* knockout observable property in view model. Also, this custom binding handler allows for a rich editor
* configuration via the binding with the meOptions object literal.
*
* @type {KnockoutBindingHandler}
* @memberof KnockoutBindingHandlers
*/
koMonacoEditor: KnockoutBindingHandler;
}
/**
* extend the Knockout.KnockoutStatic namespace
* @interface KnockoutStatic
*/
interface KnockoutStatic
{
/**
* utility to hook into the knockout namespace and store a colletion of monaco editor instance reference
*
* @type {my.IMonacoEditorsStore}
* @memberof KnockoutStatic
*/
monacoEditors: my.IMonacoEditorsStore;
}
declare var require: ( ...args: any[] ) => any;