{"version":3,"file":"iterator.d.mjs","names":[],"sources":["../../sources/polyfills/iterator.d.ts"],"sourcesContent":["// copied from https://github.com/microsoft/TypeScript/blob/eaeee9cc31bdc3a16f982a2e7b784573c977fdfa/lib/\n// but with `unknown` instead of `any`\ninterface IteratorYieldResult {\n\tdone?: false;\n\tvalue: TYield;\n}\n\ninterface IteratorReturnResult {\n\tdone: true;\n\tvalue: TReturn;\n}\n\ntype IteratorResult =\n\t| IteratorYieldResult\n\t| IteratorReturnResult;\n\ninterface Iterator {\n\t// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.\n\tnext(...args: [] | [TNext]): IteratorResult;\n\treturn?(value?: TReturn): IteratorResult;\n\tthrow?(e?: unknown): IteratorResult;\n}\n\ninterface Iterable {\n\t[Symbol.iterator](): Iterator;\n}\n\ninterface IterableIterator extends Iterator {\n\t[Symbol.iterator](): IterableIterator;\n}\ninterface SymbolConstructor {\n\t/**\n\t * A method that returns the default iterator for an object. Called by the semantics of the\n\t * for-of statement.\n\t */\n\treadonly iterator: symbol;\n}\n\ndeclare const Symbol: SymbolConstructor;\n"],"mappings":""}