|
1 | 1 | { |
2 | 2 | "metadata": { |
3 | 3 | "toolPackage": "@microsoft/api-extractor", |
4 | | - "toolVersion": "7.34.4", |
| 4 | + "toolVersion": "7.38.2", |
5 | 5 | "schemaVersion": 1011, |
6 | 6 | "oldestForwardsCompatibleVersion": 1001, |
7 | 7 | "tsdocConfig": { |
|
3242 | 3242 | "isAbstract": false, |
3243 | 3243 | "name": "dropWhile" |
3244 | 3244 | }, |
| 3245 | + { |
| 3246 | + "kind": "Method", |
| 3247 | + "canonicalReference": "polyethylene!PolyAsyncIterable#duplicate:member(1)", |
| 3248 | + "docComment": "/**\n * Returns a tuple containing `num` iterables that will yield independent copies of the elements yielded by `this`.\n *\n * @remarks\n *\n * Note that, as with every other method of this class, this instance is unusable after calling this method.\n *\n * In order to provide a truly independent iteration for all returned iterables, a buffer is kept, which can grow as big as the whole iteration in certain circumstances. The buffer is filled as fast as the fastest iterable requests new items, and emptied as fast as the slowest iterable consumes those items.\n *\n * @param num - the number of copies to be returned\n *\n * @returns An array of `num` elements containing independent copies of this iterable\n */\n", |
| 3249 | + "excerptTokens": [ |
| 3250 | + { |
| 3251 | + "kind": "Content", |
| 3252 | + "text": "duplicate<N extends " |
| 3253 | + }, |
| 3254 | + { |
| 3255 | + "kind": "Content", |
| 3256 | + "text": "number" |
| 3257 | + }, |
| 3258 | + { |
| 3259 | + "kind": "Content", |
| 3260 | + "text": ">(num: " |
| 3261 | + }, |
| 3262 | + { |
| 3263 | + "kind": "Content", |
| 3264 | + "text": "N" |
| 3265 | + }, |
| 3266 | + { |
| 3267 | + "kind": "Content", |
| 3268 | + "text": "): " |
| 3269 | + }, |
| 3270 | + { |
| 3271 | + "kind": "Reference", |
| 3272 | + "text": "Tuple", |
| 3273 | + "canonicalReference": "polyethylene!Tuple:type" |
| 3274 | + }, |
| 3275 | + { |
| 3276 | + "kind": "Content", |
| 3277 | + "text": "<" |
| 3278 | + }, |
| 3279 | + { |
| 3280 | + "kind": "Reference", |
| 3281 | + "text": "PolyAsyncIterable", |
| 3282 | + "canonicalReference": "polyethylene!PolyAsyncIterable:class" |
| 3283 | + }, |
| 3284 | + { |
| 3285 | + "kind": "Content", |
| 3286 | + "text": "<T>, N>" |
| 3287 | + }, |
| 3288 | + { |
| 3289 | + "kind": "Content", |
| 3290 | + "text": ";" |
| 3291 | + } |
| 3292 | + ], |
| 3293 | + "typeParameters": [ |
| 3294 | + { |
| 3295 | + "typeParameterName": "N", |
| 3296 | + "constraintTokenRange": { |
| 3297 | + "startIndex": 1, |
| 3298 | + "endIndex": 2 |
| 3299 | + }, |
| 3300 | + "defaultTypeTokenRange": { |
| 3301 | + "startIndex": 0, |
| 3302 | + "endIndex": 0 |
| 3303 | + } |
| 3304 | + } |
| 3305 | + ], |
| 3306 | + "isStatic": false, |
| 3307 | + "returnTypeTokenRange": { |
| 3308 | + "startIndex": 5, |
| 3309 | + "endIndex": 9 |
| 3310 | + }, |
| 3311 | + "releaseTag": "Public", |
| 3312 | + "isProtected": false, |
| 3313 | + "overloadIndex": 1, |
| 3314 | + "parameters": [ |
| 3315 | + { |
| 3316 | + "parameterName": "num", |
| 3317 | + "parameterTypeTokenRange": { |
| 3318 | + "startIndex": 3, |
| 3319 | + "endIndex": 4 |
| 3320 | + }, |
| 3321 | + "isOptional": false |
| 3322 | + } |
| 3323 | + ], |
| 3324 | + "isOptional": false, |
| 3325 | + "isAbstract": false, |
| 3326 | + "name": "duplicate" |
| 3327 | + }, |
3245 | 3328 | { |
3246 | 3329 | "kind": "Method", |
3247 | 3330 | "canonicalReference": "polyethylene!PolyAsyncIterable#every:member(1)", |
|
6384 | 6467 | }, |
6385 | 6468 | { |
6386 | 6469 | "kind": "Reference", |
6387 | | - "text": "Generator", |
6388 | | - "canonicalReference": "!Generator:interface" |
| 6470 | + "text": "Iterator", |
| 6471 | + "canonicalReference": "!Iterator:interface" |
6389 | 6472 | }, |
6390 | 6473 | { |
6391 | 6474 | "kind": "Content", |
|
6942 | 7025 | "isAbstract": false, |
6943 | 7026 | "name": "dropWhile" |
6944 | 7027 | }, |
| 7028 | + { |
| 7029 | + "kind": "Method", |
| 7030 | + "canonicalReference": "polyethylene!PolySyncIterable#duplicate:member(1)", |
| 7031 | + "docComment": "/**\n * Returns a tuple containing `num` iterables that will yield independent copies of the elements yielded by `this`.\n *\n * @remarks\n *\n * Note that, as with every other method of this class, this instance is unusable after calling this method.\n *\n * In order to provide a truly independent iteration for all returned iterables, a buffer is kept, which can grow as big as the whole iteration in certain circumstances. The buffer is filled as fast as the fastest iterable requests new items, and emptied as fast as the slowest iterable requests new items.\n *\n * Note that for synchronous iterations, it's common to end up with a full buffer if the returned duplicated elements are used in sequence. In this situation, it might be more useful to simply convert the iteration to an array and pass it around, rather than pay the overhead of this method.\n *\n * @param num - the number of copies to be returned\n *\n * @returns An array of `num` elements containing independent copies of this iterable\n */\n", |
| 7032 | + "excerptTokens": [ |
| 7033 | + { |
| 7034 | + "kind": "Content", |
| 7035 | + "text": "duplicate<N extends " |
| 7036 | + }, |
| 7037 | + { |
| 7038 | + "kind": "Content", |
| 7039 | + "text": "number" |
| 7040 | + }, |
| 7041 | + { |
| 7042 | + "kind": "Content", |
| 7043 | + "text": ">(num: " |
| 7044 | + }, |
| 7045 | + { |
| 7046 | + "kind": "Content", |
| 7047 | + "text": "N" |
| 7048 | + }, |
| 7049 | + { |
| 7050 | + "kind": "Content", |
| 7051 | + "text": "): " |
| 7052 | + }, |
| 7053 | + { |
| 7054 | + "kind": "Reference", |
| 7055 | + "text": "Tuple", |
| 7056 | + "canonicalReference": "polyethylene!Tuple:type" |
| 7057 | + }, |
| 7058 | + { |
| 7059 | + "kind": "Content", |
| 7060 | + "text": "<" |
| 7061 | + }, |
| 7062 | + { |
| 7063 | + "kind": "Reference", |
| 7064 | + "text": "PolySyncIterable", |
| 7065 | + "canonicalReference": "polyethylene!PolySyncIterable:class" |
| 7066 | + }, |
| 7067 | + { |
| 7068 | + "kind": "Content", |
| 7069 | + "text": "<T>, N>" |
| 7070 | + }, |
| 7071 | + { |
| 7072 | + "kind": "Content", |
| 7073 | + "text": ";" |
| 7074 | + } |
| 7075 | + ], |
| 7076 | + "typeParameters": [ |
| 7077 | + { |
| 7078 | + "typeParameterName": "N", |
| 7079 | + "constraintTokenRange": { |
| 7080 | + "startIndex": 1, |
| 7081 | + "endIndex": 2 |
| 7082 | + }, |
| 7083 | + "defaultTypeTokenRange": { |
| 7084 | + "startIndex": 0, |
| 7085 | + "endIndex": 0 |
| 7086 | + } |
| 7087 | + } |
| 7088 | + ], |
| 7089 | + "isStatic": false, |
| 7090 | + "returnTypeTokenRange": { |
| 7091 | + "startIndex": 5, |
| 7092 | + "endIndex": 9 |
| 7093 | + }, |
| 7094 | + "releaseTag": "Public", |
| 7095 | + "isProtected": false, |
| 7096 | + "overloadIndex": 1, |
| 7097 | + "parameters": [ |
| 7098 | + { |
| 7099 | + "parameterName": "num", |
| 7100 | + "parameterTypeTokenRange": { |
| 7101 | + "startIndex": 3, |
| 7102 | + "endIndex": 4 |
| 7103 | + }, |
| 7104 | + "isOptional": false |
| 7105 | + } |
| 7106 | + ], |
| 7107 | + "isOptional": false, |
| 7108 | + "isAbstract": false, |
| 7109 | + "name": "duplicate" |
| 7110 | + }, |
6945 | 7111 | { |
6946 | 7112 | "kind": "Method", |
6947 | 7113 | "canonicalReference": "polyethylene!PolySyncIterable#every:member(1)", |
|
9596 | 9762 | "endIndex": 3 |
9597 | 9763 | } |
9598 | 9764 | ] |
| 9765 | + }, |
| 9766 | + { |
| 9767 | + "kind": "TypeAlias", |
| 9768 | + "canonicalReference": "polyethylene!Tuple:type", |
| 9769 | + "docComment": "/**\n * A tuple of `N` elements of type `T`.\n *\n * @typeParam T - The type of elements of the tuple\n *\n * @typeParam N - The number of elements in this tuple\n */\n", |
| 9770 | + "excerptTokens": [ |
| 9771 | + { |
| 9772 | + "kind": "Content", |
| 9773 | + "text": "export type Tuple<T, N extends " |
| 9774 | + }, |
| 9775 | + { |
| 9776 | + "kind": "Content", |
| 9777 | + "text": "number" |
| 9778 | + }, |
| 9779 | + { |
| 9780 | + "kind": "Content", |
| 9781 | + "text": "> = " |
| 9782 | + }, |
| 9783 | + { |
| 9784 | + "kind": "Content", |
| 9785 | + "text": "[T, ...T[]] & {\n length: N;\n}" |
| 9786 | + }, |
| 9787 | + { |
| 9788 | + "kind": "Content", |
| 9789 | + "text": ";" |
| 9790 | + } |
| 9791 | + ], |
| 9792 | + "fileUrlPath": "src/lib/types.ts", |
| 9793 | + "releaseTag": "Public", |
| 9794 | + "name": "Tuple", |
| 9795 | + "typeParameters": [ |
| 9796 | + { |
| 9797 | + "typeParameterName": "T", |
| 9798 | + "constraintTokenRange": { |
| 9799 | + "startIndex": 0, |
| 9800 | + "endIndex": 0 |
| 9801 | + }, |
| 9802 | + "defaultTypeTokenRange": { |
| 9803 | + "startIndex": 0, |
| 9804 | + "endIndex": 0 |
| 9805 | + } |
| 9806 | + }, |
| 9807 | + { |
| 9808 | + "typeParameterName": "N", |
| 9809 | + "constraintTokenRange": { |
| 9810 | + "startIndex": 1, |
| 9811 | + "endIndex": 2 |
| 9812 | + }, |
| 9813 | + "defaultTypeTokenRange": { |
| 9814 | + "startIndex": 0, |
| 9815 | + "endIndex": 0 |
| 9816 | + } |
| 9817 | + } |
| 9818 | + ], |
| 9819 | + "typeTokenRange": { |
| 9820 | + "startIndex": 3, |
| 9821 | + "endIndex": 4 |
| 9822 | + } |
9599 | 9823 | } |
9600 | 9824 | ] |
9601 | 9825 | } |
|
0 commit comments