You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monaco-editor/lib/lib-es6-ts.js

10 lines
804 KiB
JavaScript

9 years ago
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// This is a generated file from lib.es6.d.ts
define([], function() { return { contents: "/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved. \r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0 \r\n \r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \r\nMERCHANTABLITY OR NON-INFRINGEMENT. \r\n \r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n\r\n/// <reference no-default-lib=\"true\"/>\r\ndeclare type PropertyKey = string | number | symbol;\r\n\r\ninterface Symbol {\r\n /** Returns a string representation of an object. */\r\n toString(): string;\r\n\r\n /** Returns the primitive value of the specified object. */\r\n valueOf(): Object;\r\n\r\n [Symbol.toStringTag]: \"Symbol\";\r\n}\r\n\r\ninterface SymbolConstructor {\r\n /** \r\n * A reference to the prototype. \r\n */\r\n prototype: Symbol;\r\n\r\n /**\r\n * Returns a new unique Symbol value.\r\n * @param description Description of the new Symbol object.\r\n */\r\n (description?: string|number): symbol;\r\n\r\n /**\r\n * Returns a Symbol object from the global symbol registry matching the given key if found. \r\n * Otherwise, returns a new symbol with this key.\r\n * @param key key to search for.\r\n */\r\n for(key: string): symbol;\r\n\r\n /**\r\n * Returns a key from the global symbol registry matching the given Symbol if found. \r\n * Otherwise, returns a undefined.\r\n * @param sym Symbol to find the key for.\r\n */\r\n keyFor(sym: symbol): string;\r\n\r\n // Well-known Symbols\r\n\r\n /** \r\n * A method that determines if a constructor object recognizes an object as one of the \r\n * constructors instances. Called by the semantics of the instanceof operator. \r\n */\r\n hasInstance: symbol;\r\n\r\n /** \r\n * A Boolean value that if true indicates that an object should flatten to its array elements\r\n * by Array.prototype.concat.\r\n */\r\n isConcatSpreadable: symbol;\r\n\r\n /** \r\n * A method that returns the default iterator for an object. Called by the semantics of the \r\n * for-of statement.\r\n */\r\n iterator: symbol;\r\n\r\n /**\r\n * A regular expression method that matches the regular expression against a string. Called \r\n * by the String.prototype.match method. \r\n */\r\n match: symbol;\r\n\r\n /** \r\n * A regular expression method that replaces matched substrings of a string. Called by the \r\n * String.prototype.replace method.\r\n */\r\n replace: symbol;\r\n\r\n /**\r\n * A regular expression method that returns the index within a string that matches the \r\n * regular expression. Called by the String.prototype.search method.\r\n */\r\n search: symbol;\r\n\r\n /** \r\n * A function valued property that is the constructor function that is used to create \r\n * derived objects.\r\n */\r\n species: symbol;\r\n\r\n /**\r\n * A regular expression method that splits a string at the indices that match the regular \r\n * expression. Called by the String.prototype.split method.\r\n */\r\n split: symbol;\r\n\r\n /** \r\n * A method that converts an object to a corresponding primitive value.\r\n * Called by the ToPrimitive abstract operation.\r\n */\r\n toPrimitive: symbol;\r\n\r\n /** \r\n * A String value that is used in the creation of the default string description of an object.\r\n * Called