mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
Vendored
+15
-15
@@ -3,14 +3,14 @@
|
||||
// Definitions by: Michael Van Sickle <https://github.com/vansimke>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module dojox {
|
||||
|
||||
module secure {
|
||||
declare namespace dojox {
|
||||
|
||||
namespace secure {
|
||||
/**
|
||||
* Permalink: http://dojotoolkit.org/api/1.9/dojox/secure/DOM.html
|
||||
*
|
||||
*
|
||||
* @param element
|
||||
*
|
||||
* @param element
|
||||
*/
|
||||
interface DOM{(element: any): void}
|
||||
/**
|
||||
@@ -22,35 +22,35 @@ declare module dojox {
|
||||
* scripts and HTML.
|
||||
* This function will create and return a sandbox object (see dojox.secure.__Sandbox)
|
||||
* for the provided element.
|
||||
*
|
||||
* @param element The DOM element to use as the container for the sandbox
|
||||
*
|
||||
* @param element The DOM element to use as the container for the sandbox
|
||||
*/
|
||||
interface sandbox{(element: any): void}
|
||||
module fromJson {
|
||||
namespace fromJson {
|
||||
}
|
||||
|
||||
/**
|
||||
* Permalink: http://dojotoolkit.org/api/1.9/dojox/secure/capability.html
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
interface capability {
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
keywords: any[];
|
||||
/**
|
||||
* pass in the text of a script. If it passes and it can be eval'ed, it should be safe.
|
||||
* Note that this does not do full syntax checking, it relies on eval to reject invalid scripts.
|
||||
* There are also known false rejections:
|
||||
*
|
||||
*
|
||||
* Nesting vars inside blocks will not declare the variable for the outer block
|
||||
* Named functions are not treated as declaration so they are generally not allowed unless the name is declared with a var.
|
||||
* Var declaration that involve multiple comma delimited variable assignments are not accepted
|
||||
*
|
||||
* @param script the script to execute
|
||||
* @param safeLibraries The safe libraries that can be called (the functions can not be access/modified by the untrusted code, only called)
|
||||
* @param safeGlobals These globals can be freely interacted with by the untrusted code
|
||||
*
|
||||
* @param script the script to execute
|
||||
* @param safeLibraries The safe libraries that can be called (the functions can not be access/modified by the untrusted code, only called)
|
||||
* @param safeGlobals These globals can be freely interacted with by the untrusted code
|
||||
*/
|
||||
validate(script: String, safeLibraries: any[], safeGlobals: Object): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user