Add new API to typings test

This commit is contained in:
Daniel Imms
2017-09-04 14:19:17 -07:00
parent 46b0857ef6
commit 1e728d453b
+7
View File
@@ -168,6 +168,10 @@ namespace methods_core {
t.setOption('bellStyle', 'visual');
t.setOption('bellStyle', 'sound');
t.setOption('bellStyle', 'both');
t.setOption('fontSize', 1);
t.setOption('lineHeight', 1);
t.setOption('fontFamily', 'foo');
t.setOption('theme', {background: '#ff0000'});
}
}
namespace scrolling {
@@ -212,6 +216,9 @@ namespace methods_experimental {
priority: 1,
validationCallback: (uri: string, callback: (isValid: boolean) => void) => {
console.log(uri, callback);
},
hoverCallback: (e: MouseEvent, uri: string) => {
console.log(e, uri);
}
});
t.deregisterLinkMatcher(1);