|
| 1 | +/* |
| 2 | +* @license Apache-2.0 |
| 3 | +* |
| 4 | +* Copyright (c) 2021 The Stdlib Authors. |
| 5 | +* |
| 6 | +* Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +* you may not use this file except in compliance with the License. |
| 8 | +* You may obtain a copy of the License at |
| 9 | +* |
| 10 | +* http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +* |
| 12 | +* Unless required by applicable law or agreed to in writing, software |
| 13 | +* distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +* See the License for the specific language governing permissions and |
| 16 | +* limitations under the License. |
| 17 | +*/ |
| 18 | + |
| 19 | +// TypeScript Version: 2.0 |
| 20 | + |
| 21 | +/* tslint:disable:max-line-length */ |
| 22 | +/* tslint:disable:max-file-line-count */ |
| 23 | + |
| 24 | +import AsyncIteratorSymbol = require( '@stdlib/symbol/async-iterator' ); |
| 25 | +import Symbol = require( '@stdlib/symbol/ctor' ); |
| 26 | +import IteratorSymbol = require( '@stdlib/symbol/iterator' ); |
| 27 | + |
| 28 | +/** |
| 29 | +* Interface describing the `symbol` namespace. |
| 30 | +*/ |
| 31 | +interface Namespace { |
| 32 | + /** |
| 33 | + * Async iterator symbol. |
| 34 | + * |
| 35 | + * ## Notes |
| 36 | + * |
| 37 | + * - This symbol specifies the default async iterator for an object. |
| 38 | + * - The symbol is only supported in ES6/ES2015+ environments. For non-supporting environments, the value is `null`. |
| 39 | + */ |
| 40 | + AsyncIteratorSymbol: typeof AsyncIteratorSymbol; |
| 41 | + |
| 42 | + /** |
| 43 | + * Returns a symbol. |
| 44 | + * |
| 45 | + * ## Notes |
| 46 | + * |
| 47 | + * - Unlike conventional constructors, this function does **not** support the `new` keyword. |
| 48 | + * - This function is only supported in environments which support symbols. |
| 49 | + * |
| 50 | + * @param description - symbol description which can be used for debugging but not to access the symbol itself |
| 51 | + * @returns symbol |
| 52 | + */ |
| 53 | + Symbol: typeof Symbol; |
| 54 | + |
| 55 | + /** |
| 56 | + * Iterator symbol. |
| 57 | + * |
| 58 | + * ## Notes |
| 59 | + * |
| 60 | + * - This symbol specifies the default iterator for an object. |
| 61 | + * - The symbol is only supported in ES6/ES2015+ environments. For non-supporting environments, the value is `null`. |
| 62 | + */ |
| 63 | + IteratorSymbol: typeof IteratorSymbol; |
| 64 | +} |
| 65 | + |
| 66 | +/** |
| 67 | +* Symbol. |
| 68 | +*/ |
| 69 | +declare var ns: Namespace; |
| 70 | + |
| 71 | + |
| 72 | +// EXPORTS // |
| 73 | + |
| 74 | +export = ns; |
0 commit comments