mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 04:01:46 +00:00
Properly inline getters; Simplify blocks when last statement returns
This commit is contained in:
15
std/portable.d.ts
vendored
15
std/portable.d.ts
vendored
@ -12,6 +12,8 @@
|
||||
* @module std/portable
|
||||
*//***/
|
||||
|
||||
/// <reference no-default-lib="true"/>
|
||||
|
||||
// Portable types
|
||||
|
||||
declare type i8 = number;
|
||||
@ -309,11 +311,6 @@ declare class Error {
|
||||
stack: string | null;
|
||||
}
|
||||
|
||||
declare class Symbol {
|
||||
private constructor();
|
||||
static readonly iterator: symbol;
|
||||
}
|
||||
|
||||
declare class Set<T> {
|
||||
constructor(entries?: T[]);
|
||||
readonly size: i32;
|
||||
@ -337,6 +334,14 @@ declare class Map<K,V> {
|
||||
[Symbol.iterator](): Iterator<[K,V]>;
|
||||
}
|
||||
|
||||
interface SymbolConstructor {
|
||||
(description?: string | null): symbol;
|
||||
for(key: string): symbol;
|
||||
keyFor(sym: symbol): string | null;
|
||||
readonly iterator: symbol;
|
||||
}
|
||||
declare const Symbol: SymbolConstructor;
|
||||
|
||||
interface Iterable<T> {
|
||||
[Symbol.iterator](): Iterator<T>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user