sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
8ef692b43546bba3f743f404e14f99d211c587190aad12e736d59701ae5edba4
TypeScript
2,244
83
/// <reference types="node" /> import { EventEmitter } from "events"; export declare type SocketId = string; export declare type Room = string; export interface BroadcastFlags { volatile?: boolean; compress?: boolean; local?: boolean; broadcast?: boolean; binary?: boolean; } export interface Broadca...
3d05b353d9341c0dbff6d21f18490e346c3b661f5fc9d7f36e0e3fe5f940699c
TypeScript
2,286
87
import { Readable } from 'stream'; declare namespace getRawBody { export type Encoding = string | true; export interface Options { /** * The expected length of the stream. */ length?: number | string | null; /** * The byte limit of the body. This is the number of bytes or any string ...
61046f12c3cfafd353d2d03febc96b441c1a0e3bb82a5a88de78cc1be9e10520
TypeScript
2,312
72
import {Primitive} from './basic'; /** Create a type from another type with all keys and nested keys set to optional. Use-cases: - Merging a default settings/config object with another object, the second object would be a deep partial of the default object. - Mocking and testing complex entities, where populating an ...
3b89266efc5885741d1b7feb49d1e73d5836e3d0fba14c4d8c2eb0f791822019
TypeScript
2,315
109
/// <reference types="node" /> import { Packet } from "socket.io-parser"; import type { IncomingMessage } from "http"; import type { Server } from "./index"; import type { Socket } from "./socket"; export declare class Client { readonly conn: any; private readonly id; private readonly server; private re...
d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834
TypeScript
2,420
56
// NOTE: These definitions support NodeJS and TypeScript 3.2 - 3.4. // NOTE: TypeScript version-specific augmentations can be found in the following paths: // - ~/base.d.ts - Shared definitions common to all TypeScript versions // - ~/index.d.ts - Definitions specific to TypeScript 2.1...
cea12c41a0b50f826fd57bd459af98a96fe4cd12d905d1567e03c2e90cc9466d
TypeScript
2,475
110
/// <reference types="node" /> import { Packet } from "socket.io-parser"; import type { IncomingMessage } from "http"; import type { Server } from "./index"; import type { EventsMap } from "./typed-events"; import type { Socket } from "./socket"; export declare class Client<ListenEvents extends EventsMap, EmitEvents ex...
3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837
TypeScript
2,503
70
declare module 'node:tty' { export * from 'tty'; } declare module 'tty' { import * as net from 'node:net'; function isatty(fd: number): boolean; class ReadStream extends net.Socket { constructor(fd: number, options?: net.SocketConstructorOpts); isRaw: boolean; setRawMode(mode: ...
8b5c247f933ebd3e0e9ba63272e5679d26557d3a094607de9d181f712866c39c
TypeScript
2,543
101
declare const dotProp: { /** @param object - Object to get the `path` value. @param path - Path of the property in the object, using `.` to separate each nested key. Use `\\.` if you have a `.` in the key. @param defaultValue - Default value. @example ``` import dotProp = require('dot-prop'); dotProp.get({foo...
1b98a8704d0c68520ccb02ac44782b7ffdaab40d23d2fa00e13923b528587f8b
TypeScript
2,570
71
declare module "node:stream/promises" { export * from "stream/promises"; } declare module "stream/promises" { import { FinishedOptions, PipelineSource, PipelineTransform, PipelineDestination, PipelinePromise, PipelineOptions } from "stream"; function finished(stream: NodeJS.ReadableStream | NodeJS...
69b7dd281c560c207540e6c50ce327cc6ba6a73923fd73357fefc8e2e7197464
TypeScript
2,583
96
import { type AlertConfig, alertIsError, alertIsWarn, type AlertLevel, ErrorAlertConfig, type ExperimentalDesign, WarnAlertConfig, } from "../types"; export function alertLevelColor(l: AlertLevel | undefined) { const feedbackErrorColor = "#D71715"; const feedbackWarningColor = "#F2994A"; const stee...
ae68a04912ee5a0f589276f9ec60b095f8c40d48128a4575b3fdd7d93806931c
TypeScript
2,620
61
// NOTE: These definitions support NodeJS and TypeScript 3.6 and earlier. // NOTE: TypeScript version-specific augmentations can be found in the following paths: // - ~/base.d.ts - Shared definitions common to all TypeScript versions // - ~/index.d.ts - Definitions specific to TypeScri...
9d2b714a7a308ad91972f62f0708eed5ab7382e13b4278efb7ebcb46ae9b6ae0
TypeScript
2,749
80
import { describe, expect, test } from "@jest/globals"; import { makeAlertConfig } from "../test-utils"; import { alertLevelColor, getAlertThreshold } from "./alertUtils"; describe("OptionalMultiplexedSummary", () => { describe("SampleRollup", () => { describe("alertUtils", () => { describe("alertLevelCol...
210ef68f34baca2a4499c07a51f05d51b4f0ef01d64efea3017cb3bc31c37e33
TypeScript
2,857
66
// NOTE: These definitions support NodeJS and TypeScript 3.6 and earlier. // NOTE: TypeScript version-specific augmentations can be found in the following paths: // - ~/base.d.ts - Shared definitions common to all TypeScript versions // - ~/index.d.ts - Definitions specific to TypeScri...
3b2a02fadca99617dcd979dbbc86212d595ccf30580e3f6a855ddefdbd02299d
TypeScript
2,903
99
import { describe, expect, test } from "@jest/globals"; import { defaultPlateData, isPlateBased, parsePlateBarcodeId, } from "./plateUtils"; describe("OptionalMultiplexedSummary", () => { describe("SampleRollup", () => { describe("plateUtils", () => { describe("defaultPlateData", () => { tes...
662a75272462317059315f3028452dc8044f752ad0b6b61c084a7ae3eeb0f775
TypeScript
2,959
68
declare module "ipaddr.js" { type IPv4Range = 'unicast' | 'unspecified' | 'broadcast' | 'multicast' | 'linkLocal' | 'loopback' | 'carrierGradeNat' | 'private' | 'reserved'; type IPv6Range = 'unicast' | 'unspecified' | 'linkLocal' | 'multicast' | 'loopback' | 'uniqueLocal' | 'ipv4Mapped' | 'rfc6145' | 'rfc6052' ...
0797b889b745051d706c17212d86e28c9e150e89597ab5a16f81bbb8af1367c8
TypeScript
3,069
175
import {LiteralUnion} from 'type-fest'; import cliBoxes, {BoxStyle} from 'cli-boxes'; declare namespace boxen { /** Characters used for custom border. @example ``` // affffb // e e // dffffc const border: CustomBorderStyle = { topLeft: 'a', topRight: 'b', bottomRight: 'c', bottomLeft: 'd', verti...
426dfc3f738617c403c8019cd9831958928dbd6f4dbeb66f17f24b0145093baf
TypeScript
3,185
112
/// <reference types="node" /> import { EventEmitter } from "events"; export declare type SocketId = string; export declare type Room = string; export interface BroadcastFlags { volatile?: boolean; compress?: boolean; local?: boolean; broadcast?: boolean; binary?: boolean; } export interface Broadca...
8eaadebe250f0ca410c9ad51ed0666527f009b643555e9a19016abb9963efa9e
TypeScript
3,367
98
import { useMemo } from "react"; import { AlertLevel } from "../../types"; import { getAlertSeverityFromAlerts, getMostSevereAlertTitlesFromAlerts, } from "../../utils"; import { alertLevelColor } from "../alertUtils"; import { PlateDataMap } from "../types"; import { defaultPlateData, parsePlateBarcodeId } from "...
58bf48c53d15b8eacd23f365883e0c371a92c9f3732da0d46d2fa32a228036b5
TypeScript
3,377
135
/// <reference types="node" /> import { Socket } from "./socket"; import type { Server } from "./index"; import type { Client } from "./client"; import { EventEmitter } from "events"; import type { Adapter, Room, SocketId } from "socket.io-adapter"; export interface ExtendedError extends Error { data?: any; } expor...
780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf
TypeScript
3,437
90
declare module 'node:wasi' { export * from 'wasi'; } declare module 'wasi' { interface WASIOptions { /** * An array of strings that the WebAssembly application will * see as command line arguments. The first argument is the virtual path to the * WASI command itself. ...
bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb
TypeScript
3,478
83
declare module 'node:events' { import EventEmitter = require('events'); export = EventEmitter; } declare module 'events' { interface EventEmitterOptions { /** * Enables automatic capturing of promise rejection. */ captureRejections?: boolean; } interface NodeEvent...
6c9c7e459e013ddf52c70b90f88bbdd925e483ef984d80f9bffb501029974e82
TypeScript
3,562
58
// Type definitions for non-npm package Node.js 15.0 // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript <https://github.com/Microsoft> // DefinitelyTyped <https://github.com/DefinitelyTyped> // Alberto Schiabel <https://github.com/jkomyno> // Alvis HT ...
9c4c395e927045b324877acdc4bfb95f128f36bc9f073266a2f0342495075a4f
TypeScript
3,634
59
// Type definitions for non-npm package Node.js 14.14 // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript <https://github.com/Microsoft> // DefinitelyTyped <https://github.com/DefinitelyTyped> // Alberto Schiabel <https://github.com/jkomyno> // Alvis HT...
eb15e56611c2a853526a2e202234dd1676bd37cc2fcdbd9843470f7dafb37f15
TypeScript
3,668
87
declare module 'node:events' { import EventEmitter = require('events'); export = EventEmitter; } declare module 'events' { interface EventEmitterOptions { /** * Enables automatic capturing of promise rejection. */ captureRejections?: boolean; } interface NodeEvent...
60a338c686d0d8ca997ba072e955484008a401bfc4cbe8ccf62a46b03a8a6a50
TypeScript
3,752
108
/// <reference types="node"/> import {Stream} from 'stream'; declare class MaxBufferErrorClass extends Error { readonly name: 'MaxBufferError'; constructor(); } declare namespace getStream { interface Options { /** Maximum length of the returned string. If it exceeds this value before the stream ends, the prom...
a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8
TypeScript
3,847
86
/** * @deprecated since v7.0.0 * The version of the punycode module bundled in Node.js is being deprecated. * In a future major version of Node.js this module will be removed. * Users currently depending on the punycode module should switch to using * the userland-provided Punycode.js module instead. */ declare m...
e4ab7077b5adff3156d258a284986dc85e0bcf0fff1670df5c7f83efc25d4cc6
TypeScript
4,187
101
declare module "node:dns/promises" { export * from "dns/promises"; } declare module "dns/promises" { import { LookupAddress, LookupOneOptions, LookupAllOptions, LookupOptions, AnyRecord, CaaRecord, MxRecord, NaptrRecord, SoaRecord, ...
2e095c7271ae3f5a2ad2e38b1b630c392a69bece8b01b8274315b308d78bd12b
TypeScript
4,248
144
import { useMemo } from "react"; import { JsonMetricSummary, LibraryType, MultiWebSummarySampleData, SampleWebSummary, } from "../types"; import { getMetricsForLibraryType, hasAlerts } from "../utilities"; import { getAlertSeverity, getAlertSeverityFromAlerts } from "../utils"; import { SampleMetricsBarcodes }...
3bfc04fd5661b103de31098cdbca7d5952f3fa69a4d133231246ecdc631e52f6
TypeScript
4,260
138
import { isEqual } from "lodash"; import cloneDeep from "lodash/cloneDeep"; import type { Config, Layout, PlotData } from "plotly.js"; type Plot = { config: Partial<Config>; data: ReadonlyArray<Partial<PlotData>>; layout: Partial<Layout>; }; type SamplePlot = { plot: Plot; sampleId: string; }; function get...
631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9
TypeScript
4,270
120
declare module 'node:url' { export * from 'url'; } declare module 'url' { import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring'; // Input to `url.format` interface UrlObject { auth?: string | null; hash?: string | null; host?: string | null; hostname?: ...
7310329579c7cee56637f843669ed4a2448b7731eec33ce2be9e8b5effa9b0e6
TypeScript
4,328
144
import type { BroadcastFlags, Room, SocketId } from "socket.io-adapter"; import { Handshake } from "./socket"; import type { Adapter } from "socket.io-adapter"; import type { EventParams, EventNames, EventsMap, TypedEventBroadcaster } from "./typed-events"; export declare class BroadcastOperator<EmitEvents extends Even...
a313b6408d977e0223ab701a26f6a97a84f825dcc8f97893f0eae16f03cedb37
TypeScript
4,530
167
import uniqWith from "lodash/uniqWith"; import expandPlots from "../../shared/websummary/components/CellRanger/PreProcess"; import { MetricEntryConfig } from "./config/types"; import { Fraction, type JsonMetricSummary, type LibraryType, type LibraryWebSummary, metricIsFraction, metricIsNumber, metricIsSt...
a4aa6eb2a56d8759bce946fef668541f303be73d83fbbdf45130fd3721a3936a
TypeScript
4,564
168
/** * Accepts a function that is called when the promise is canceled. * * You're not required to call this function. You can call this function multiple times to add multiple cancel handlers. */ export interface OnCancelFunction { (cancelHandler: () => void): void; shouldReject: boolean; } declare class PCancela...
1aa743b5b89d2f3c7eff2c20661d119623e4dbfa33f992a16583f16af7b70c75
TypeScript
4,684
103
declare module 'node:assert' { import assert = require('assert'); export = assert; } declare module 'assert' { /** An alias of `assert.ok()`. */ function assert(value: any, message?: string | Error): void; namespace assert { class AssertionError extends Error { actual: any; ...
268b91e005863b73e96181aff9eb64c308d324cde6e265180b416a316e88f4e2
TypeScript
4,952
216
declare namespace normalizeUrl { interface Options { /** @default 'http:' */ readonly defaultProtocol?: string; /** Prepends `defaultProtocol` to the URL if it's protocol-relative. @default true @example ``` normalizeUrl('//sindresorhus.com:80/'); //=> 'http://sindresorhus.com' normalizeUrl...
e34c13b2d9d15cb284619be06ea9645827f56b89eb3f7e8b65ea854a78d3f620
TypeScript
5,057
110
/// <reference types="node" /> import { EventEmitter } from "events"; /** * An events map is an interface that maps event names to their value, which * represents the type of the `on` listener. */ export interface EventsMap { [event: string]: any; } /** * The default events map, used if no EventsMap is given. U...
9ae43c672bbce5b194cef8607c953eec1927b01af41c325f1bdd5f26f3834ea0
TypeScript
5,121
170
import { Socket } from "./socket"; import type { Server } from "./index"; import { EventParams, EventNames, EventsMap, StrictEventEmitter, DefaultEventsMap } from "./typed-events"; import type { Client } from "./client"; import type { Adapter, Room, SocketId } from "socket.io-adapter"; import { BroadcastOperator, Remot...
5712b0959ac6698aec1c8292e108c19a72a173cedb7faf60a2f3440fd403d075
TypeScript
5,284
222
/* eslint-disable @typescript-eslint/no-explicit-any */ import type { Config, Layout, PlotData } from "plotly.js"; export interface TabData { // TODO // Try and narrow down content if possible/make it generic so that // it matches the specific TabData, e.g. TabDataGEX, TabDataVDJ, etc. content: TabContent & an...
61e46b3e97907f0e0536e6034edacdf14432e0ff2e216fc4a0458074927bf47b
TypeScript
5,451
192
import { afterEach, beforeEach, describe, expect, jest, test, } from "@jest/globals"; import { collatePlots } from "./plotlyUtils"; describe("OptionalMultiplexedSummary", () => { describe("plotlyUtils", () => { describe("collatePlots", () => { let warnSpy: jest.SpiedFunction<typeof console.war...
19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e
TypeScript
5,689
129
declare module 'node:assert' { import assert = require('assert'); export = assert; } declare module 'assert' { /** An alias of `assert.ok()`. */ function assert(value: any, message?: string | Error): asserts value; namespace assert { class AssertionError extends Error { actual: ...
23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096
TypeScript
5,985
137
declare module 'node:console' { export = console; } declare module 'console' { import { InspectOptions } from 'node:util'; global { // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build interface Console { Console: NodeJS.ConsoleConstructo...
d2ba4654a0c7af267b65b80fda7bd3beea542692ced444530be9925d0989eae6
TypeScript
6,001
199
/// <reference types="node"/> import {Agent as HttpAgent} from 'http'; import {Agent as HttpsAgent} from 'https'; declare class VersionNotFoundErrorClass extends Error { readonly name: 'VersionNotFoundError'; constructor(packageName: string, version: string); } declare class PackageNotFoundErrorClass extends Error...
66679e8ffbf1fddef1796c60757e54e6e6551dd9823f75ef2f80176473bdaaff
TypeScript
6,059
152
declare module 'node:vm' { export * from 'vm'; } declare module 'vm' { interface Context extends NodeJS.Dict<any> { } interface BaseOptions { /** * Specifies the filename used in stack traces produced by this script. * Default: `''`. */ filename?: string; ...
f154e143317f34fb04b99727bdbf2eada6f387341fb668628f8fb50eae63a031
TypeScript
6,063
132
/// <reference types="node" /> /// <reference lib="es2016" /> /// <reference lib="es2017.sharedmemory" /> /// <reference lib="esnext.asynciterable" /> /// <reference lib="dom" /> declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | F...
cba1c82d2721ad3e111de05427921872d8100d95bf3faec27c4664d8add50468
TypeScript
6,210
213
import { useMemo } from "react"; import { MetricTableConfig } from "../../config/types"; import { getMetricHelpText } from "../../MetricsTable/utils"; import { type ExperimentalDesign, type JsonMetricSummary, metricIsEmpty, metricIsFraction, metricIsNumber, } from "../../types"; import { getFloatFromFraction...
141a943e5690105898a67537a470f70b56d0e183441b56051d929e902376b7b2
TypeScript
6,223
156
declare module 'node:vm' { export * from 'vm'; } declare module 'vm' { interface Context extends NodeJS.Dict<any> { } interface BaseOptions { /** * Specifies the filename used in stack traces produced by this script. * Default: `''`. */ filename?: string; ...
ca7f76d3ea132bde53dca1a0f33cda95397d20c248e452c050773f01504d9802
TypeScript
6,263
187
// TypeScript Version: 3.0 /// <reference types="node" /> import * as fs from "fs"; import { EventEmitter } from "events"; export class FSWatcher extends EventEmitter implements fs.FSWatcher { options: WatchOptions; /** * Constructs a new FSWatcher instance with optional WatchOptions parameter. */ const...
405ad6db8aa3d5618c3be21cde8125de28a3e40690eb05136c123f420c05c082
TypeScript
6,271
135
// Type definitions for cookie 0.4 // Project: https://github.com/jshttp/cookie // Definitions by: Pine Mizune <https://github.com/pine> // Piotr Błażejewicz <https://github.com/peterblazejewicz> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * Basic HTTP cookie parser and seri...
6b5a49a699ffbccce553dead6c39d3b10a896f78869ef5507d30dfcdbf6f0977
TypeScript
6,349
345
declare type CSSColor = | 'aliceblue' | 'antiquewhite' | 'aqua' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'black' | 'blanchedalmond' | 'blue' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'da...
0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca
TypeScript
6,395
158
declare module 'node:path' { import path = require('path'); export = path; } declare module 'path' { namespace path { /** * A parsed path object generated by path.parse() or consumed by path.format(). */ interface ParsedPath { /** * The root of the...
da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14
TypeScript
6,828
191
declare module 'node:v8' { export * from 'v8'; } declare module 'v8' { import { Readable } from 'node:stream'; interface HeapSpaceInfo { space_name: string; space_size: number; space_used_size: number; space_available_size: number; physical_space_size: number; }...
141fc675673e27e69b7e06f89fdee63213cfd47d97ea47b3591ecd17f3634fb4
TypeScript
6,926
247
import groupBy from "lodash/groupBy"; import { ConditionalMetricHelp, MetricEntryConfig, MetricTableConfig, } from "../config/types"; import { type ExperimentalDesign, type JsonMetricSummary, metricIsEmpty, metricIsFraction, metricIsNumber, metricIsString, } from "../types"; import { getFloatFromFrac...
5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed
TypeScript
7,270
145
declare module 'node:dgram' { export * from 'dgram'; } declare module 'dgram' { import { AddressInfo } from 'node:net'; import * as dns from 'node:dns'; import EventEmitter = require('node:events'); interface RemoteInfo { address: string; family: 'IPv4' | 'IPv6'; port: numb...
73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da
TypeScript
7,364
174
declare module 'node:readline' { export * from 'readline'; } declare module 'readline' { import EventEmitter = require('node:events'); interface Key { sequence?: string; name?: string; ctrl?: boolean; meta?: boolean; shift?: boolean; } class Interface exten...
2d8738bcf84dd97185533dde0b3a624bd5ee63f09c544125682f8d70b01fd181
TypeScript
7,463
264
import { interpolateMagma } from "d3-scale-chromatic"; import { useMemo } from "react"; import { MetricTableConfig } from "../../config/types"; import { getMetricHelpText } from "../../MetricsTable/utils"; import { ExperimentalDesign, JsonMetricSummary, MetricConfig, metricIsFraction, metricIsNumber, } from ...
9620e3e4560777fe3d0aca6c191f72936f76ac3b034ae9b45194b9fb4dadf784
TypeScript
7,978
324
/// <reference types="node" /> import { EventEmitter } from "events"; import { Packet } from "socket.io-parser"; import type { Client } from "./client"; import type { Namespace } from "./namespace"; import type { IncomingMessage, IncomingHttpHeaders } from "http"; import type { Room, SocketId } from "socket.io-adapter"...
32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc
TypeScript
8,232
243
declare module 'node:os' { export * from 'os'; } declare module 'os' { interface CpuInfo { model: string; speed: number; times: { user: number; nice: number; sys: number; idle: number; irq: number; }; } interfa...
f416820e2e8f33a5e07698bd5f50acf6db29716d98896ec1bf11b483d3ed4c54
TypeScript
8,556
411
declare const enum LevelEnum { /** All colors disabled. */ None = 0, /** Basic 16 colors support. */ Basic = 1, /** ANSI 256 colors support. */ Ansi256 = 2, /** Truecolor 16 million colors support. */ TrueColor = 3 } /** Basic foreground colors. [More colors here.](https://github.com/chalk/chalk/bl...
5e379df3d61561c2ed7789b5995b9ba2143bbba21a905e2381e16efe7d1fa424
TypeScript
8,738
187
declare module "safe-buffer" { export class Buffer { length: number write(string: string, offset?: number, length?: number, encoding?: string): number; toString(encoding?: string, start?: number, end?: number): string; toJSON(): { type: 'Buffer', data: any[] }; equals(otherBuffer: Buffer): boolean...
8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6
TypeScript
8,755
186
export class Buffer extends Uint8Array { length: number write(string: string, offset?: number, length?: number, encoding?: string): number; toString(encoding?: string, start?: number, end?: number): string; toJSON(): { type: 'Buffer', data: any[] }; equals(otherBuffer: Buffer): boolean; compare(...
906f138e88053825be6a1b63f80506773fa1355e8e1427cd9aea733c8f230323
TypeScript
9,328
346
/// <reference types="node" /> import { Packet } from "socket.io-parser"; import { EventParams, EventNames, EventsMap, StrictEventEmitter, DefaultEventsMap } from "./typed-events"; import type { Client } from "./client"; import type { Namespace } from "./namespace"; import type { IncomingMessage, IncomingHttpHeaders } ...
7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641
TypeScript
9,836
233
/** * Async Hooks module: https://nodejs.org/api/async_hooks.html */ declare module 'node:async_hooks' { export * from 'async_hooks'; } /** * Async Hooks module: https://nodejs.org/api/async_hooks.html */ declare module 'async_hooks' { /** * Returns the asyncId of the current execution context. *...
d20f08527645f62facb2d66c2b7bd31ea964b59c897d00bddb1efe8c13890b72
TypeScript
9,836
233
/** * Async Hooks module: https://nodejs.org/api/async_hooks.html */ declare module 'node:async_hooks' { export * from 'async_hooks'; } /** * Async Hooks module: https://nodejs.org/api/async_hooks.html */ declare module 'async_hooks' { /** * Returns the asyncId of the current execution context. *...
8b108d831999b4c6b1df9c39cdcc57c059ef19219c441e5b61bca20aabb9f411
TypeScript
10,232
501
import {LiteralUnion} from '..'; declare namespace PackageJson { /** A person who has been involved in creating or maintaining the package. */ export type Person = | string | { name: string; url?: string; email?: string; }; export type BugsLocation = | string | { /** The URL to the packa...
694e3a2b053833b5d27f35dd198c9d3aa6879f64c1085d0cf6044f6f12b86d82
TypeScript
10,409
365
/// <reference types="node" /> import http = require("http"); import { EventEmitter } from "events"; import { ExtendedError, Namespace } from "./namespace"; import { Adapter, Room, SocketId } from "socket.io-adapter"; import * as parser from "socket.io-parser"; import type { Encoder } from "socket.io-parser"; import { ...
ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f
TypeScript
10,691
275
declare module 'node:perf_hooks' { export * from 'perf_hooks'; } declare module 'perf_hooks' { import { AsyncResource } from 'node:async_hooks'; type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http'; interface PerformanceEntry { /** * The total number of...
ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877
TypeScript
11,551
242
declare module 'node:worker_threads' { export * from 'worker_threads'; } declare module 'worker_threads' { import { Context } from 'node:vm'; import EventEmitter = require('node:events'); import { Readable, Writable } from 'node:stream'; import { URL } from 'node:url'; import { FileHandle } fro...
0124e458b12ba82b08c87220a1c9d4fb7701dcda8f11e28f7d7266281501bcba
TypeScript
11,600
245
declare module 'node:worker_threads' { export * from 'worker_threads'; } declare module 'worker_threads' { import { Context } from 'node:vm'; import EventEmitter = require('node:events'); import { Readable, Writable } from 'node:stream'; import { URL } from 'node:url'; import { FileHandle } fro...
9979a12ad0c79ad71b4ea110ad97cd32fde21c0266d008906a01754c5615c0c2
TypeScript
11,954
390
/* eslint-disable sort-keys */ import MultiplexLibraryConfig, { cellCallingQualityHelp, gdnaMetricsTable, } from "./multiplex-library"; import MultiplexSampleConfig from "./multiplex-sample"; import { MetricEntryConfig, MetricTableConfig } from "./types"; const selectConfigs = ( table: MetricTableConfig, categ...
62309f23ab3a0cc42ffe8b433b12d80e8e1acc8c84107d5aa1659a7d20bb7000
TypeScript
12,009
403
/// <reference types="node" /> import http = require("http"); import { ExtendedError, Namespace, NamespaceReservedEventsMap } from "./namespace"; import { Adapter, Room, SocketId } from "socket.io-adapter"; import * as parser from "socket.io-parser"; import type { Encoder } from "socket.io-parser"; import { Socket } fr...
2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7
TypeScript
12,811
211
declare module 'node:util' { export * from 'util'; } declare module 'util' { interface InspectOptions extends NodeJS.InspectOptions { } type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module'; type CustomInspectFunction = (dep...
f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657
TypeScript
13,259
289
declare module 'node:net' { export * from 'net'; } declare module 'net' { import * as stream from 'node:stream'; import EventEmitter = require('node:events'); import * as dns from 'node:dns'; type LookupFunction = ( hostname: string, options: dns.LookupOneOptions, callback:...
12b2ab05a3ededc0e8938f2e16e4e2e30fc82b6d97b414067c26253f26fce69a
TypeScript
13,961
326
declare module 'node:dns' { export * from 'dns'; } declare module 'dns' { import * as dnsPromises from "node:dns/promises"; // Supported getaddrinfo flags. export const ADDRCONFIG: number; export const V4MAPPED: number; /** * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses ...
515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977
TypeScript
14,390
365
declare module 'node:zlib' { export * from 'zlib'; } declare module 'zlib' { import * as stream from 'node:stream'; interface ZlibOptions { /** * @default constants.Z_NO_FLUSH */ flush?: number; /** * @default constants.Z_FINISH */ finish...
2c381d36201776828c67a307ad5fd8cbcf9ecaffb1fc7f77f7ce433d1a632b7f
TypeScript
14,786
328
declare module 'node:net' { export * from 'net'; } declare module 'net' { import * as stream from 'node:stream'; import EventEmitter = require('node:events'); import * as dns from 'node:dns'; type LookupFunction = ( hostname: string, options: dns.LookupOneOptions, callback:...
714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef
TypeScript
16,197
266
declare module 'node:cluster' { export * from 'cluster'; } declare module 'cluster' { import * as child from 'node:child_process'; import EventEmitter = require('node:events'); import * as net from 'node:net'; // interfaces interface ClusterSettings { execArgv?: string[]; // default: p...
2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317
TypeScript
16,536
384
declare module 'node:dns' { export * from 'dns'; } declare module 'dns' { // Supported getaddrinfo flags. const ADDRCONFIG: number; const V4MAPPED: number; /** * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as * well as IPv4 mapped IPv6 addresses. */ const ALL: ...
8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71
TypeScript
18,191
399
declare module 'node:repl' { export * from 'repl'; } declare module 'repl' { import { Interface, Completer, AsyncCompleter } from 'node:readline'; import { Context } from 'node:vm'; import { InspectOptions } from 'node:util'; interface ReplOptions { /** * The input prompt to displ...
1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7
TypeScript
18,944
427
declare module 'node:http' { export * from 'http'; } declare module 'http' { import * as stream from 'node:stream'; import { URL } from 'node:url'; import { Socket, Server as NetServer } from 'node:net'; // incoming headers will never contain number interface IncomingHttpHeaders extends NodeJS...
37eed30fc8318b8ac76eac6f41d0758a9d0bffd8f3ff353e3ad0f8717dd08d92
TypeScript
18,969
428
declare module 'node:http' { export * from 'http'; } declare module 'http' { import * as stream from 'node:stream'; import { URL } from 'node:url'; import { Socket, Server as NetServer } from 'node:net'; // incoming headers will never contain number interface IncomingHttpHeaders extends NodeJS...
d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25
TypeScript
19,473
359
declare module 'node:stream' { import Stream = require('stream'); export = Stream; } declare module 'stream' { import EventEmitter = require('node:events'); class internal extends EventEmitter { pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T; } ...
06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e
TypeScript
20,394
412
declare module 'node:process' { export = process; } declare module 'process' { import * as tty from 'node:tty'; global { var process: NodeJS.Process; namespace NodeJS { // this namespace merge is here because these are specifically used // as the type for process.s...
fcb95c45150c717706119f12f2a3639d51baa041cd5bb441eb8501e04b52c501
TypeScript
22,274
453
declare module 'node:process' { export = process; } declare module 'process' { import * as tty from 'node:tty'; global { var process: NodeJS.Process; namespace NodeJS { // this namespace merge is here because these are specifically used // as the type for process.s...
3181199c03f6420cb59afffd0d1cf9100f602d16d1f5fa56f7c6dee0d01684bb
TypeScript
22,562
507
/* eslint-disable sort-keys */ import { confidentlyMappedReadsInCellsHelp, gdnaMetricsTable, } from "./multiplex-library"; const sensitivityHelp = "Sensitivity of V(D)J detection measured by UMIs for each contig per cell."; const sensitivityEnrichmentHelp = "Sensitivity of V(D)J detection measured by UMIs for...
74594bec8a9fa1a2cd40268f9ab95d0c44b6080345da6e8b913939d19b1d57ae
TypeScript
23,297
448
declare module 'node:stream' { import Stream = require('stream'); export = Stream; } declare module 'stream' { import EventEmitter = require('node:events'); class internal extends EventEmitter { pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T; } ...
583b4bd4e441916be4bf152ee323c4ffa6e178fd25df2ee2215ef05c7feb5ad4
TypeScript
23,705
614
// Declare "static" methods in Error interface ErrorConstructor { /** Create .stack property on a target object */ captureStackTrace(targetObject: object, constructorOpt?: Function): void; /** * Optional override for formatting stack traces * * @see https://v8.dev/docs/stack-trace-api#custom...
e9a43c3ee6fb8376bb9a4d318a660412c6abcfe5161c106e801e5431b41b7476
TypeScript
23,705
614
// Declare "static" methods in Error interface ErrorConstructor { /** Create .stack property on a target object */ captureStackTrace(targetObject: object, constructorOpt?: Function): void; /** * Optional override for formatting stack traces * * @see https://github.com/v8/v8/wiki/Stack%20Trac...
2b6906b19436e07d874a51a5829d94ab690337c4ee652735ab422a8f102168be
TypeScript
24,288
468
declare module 'node:stream' { import Stream = require('stream'); export = Stream; } declare module 'stream' { import EventEmitter = require('node:events'); import * as streamPromises from "node:stream/promises"; class internal extends EventEmitter { pipe<T extends NodeJS.WritableStream>(d...
5402314c88d0127f63f94a0272f79e04ea0fc010ff6da6613807504c4163a1ad
TypeScript
24,918
649
// Declare "static" methods in Error interface ErrorConstructor { /** Create .stack property on a target object */ captureStackTrace(targetObject: object, constructorOpt?: Function): void; /** * Optional override for formatting stack traces * * @see https://v8.dev/docs/stack-trace-api#custom...
89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d
TypeScript
25,180
513
declare module 'node:child_process' { export * from 'child_process'; } declare module 'child_process' { import { BaseEncodingOptions } from 'node:fs'; import * as events from 'node:events'; import * as net from 'node:net'; import { Writable, Readable, Stream, Pipe } from 'node:stream'; type Se...
674bedbfd2004e233e2a266a3d2286e524f0d58787a98522d834d6ccda1d215a
TypeScript
25,296
514
declare module 'node:child_process' { export * from 'child_process'; } declare module 'child_process' { import { BaseEncodingOptions } from 'node:fs'; import * as events from 'node:events'; import * as net from 'node:net'; import { Writable, Readable, Stream, Pipe } from 'node:stream'; type Se...
c98ce957db9eebd75f53edda3f6893e05ab2d2283b5667b18e31bcdb6427ed10
TypeScript
30,700
561
declare module 'fs/promises' { export * from 'node:fs/promises'; } declare module 'node:fs/promises' { import { Stats, BigIntStats, StatOptions, WriteVResult, ReadVResult, PathLike, RmDirOptions, RmOptions, MakeDirectoryOptions, Di...
bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3
TypeScript
37,905
783
declare module 'node:tls' { export * from 'tls'; } declare module 'tls' { import * as net from 'node:net'; const CLIENT_RENEG_LIMIT: number; const CLIENT_RENEG_WINDOW: number; interface Certificate { /** * Country code. */ C: string; /** * Street...
07af56f0245189d99981fc90f365bb43859b73ca7bfd708042f0781d9f3ad198
TypeScript
42,648
983
/* eslint-disable sort-keys */ import { MetricEntryConfig, MetricTableConfig } from "./types"; export const q30BarcodeHelp = [ { msg: "Fraction of cell barcode bases with Q-score >= 30, excluding very low quality/no-call (Q <= 2) bases from the denominator. The cell barcode is the combination of the GEM barcode ...
d53b352a01645c470a0d8c31bf290ba791fc28ade0ce187a4a50f5c2f826f75e
TypeScript
46,353
1,176
declare module 'node:crypto' { export * from 'crypto'; } declare module 'crypto' { import * as stream from 'node:stream'; interface Certificate { /** * @param spkac * @returns The challenge component of the `spkac` data structure, * which includes a public key and a chal...
64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d
TypeScript
46,401
1,176
declare module 'node:crypto' { export * from 'crypto'; } declare module 'crypto' { import * as stream from 'node:stream'; interface Certificate { /** * @param spkac * @returns The challenge component of the `spkac` data structure, * which includes a public key and a chal...
4105385afd60b90ebac359d02a186250885839122850d776c0ad0e327c1afb65
TypeScript
50,233
1,274
declare module 'node:crypto' { export * from 'crypto'; } declare module 'crypto' { import * as stream from 'node:stream'; interface Certificate { /** * @deprecated * @param spkac * @returns The challenge component of the `spkac` data structure, * which includes ...
4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf
TypeScript
56,732
962
declare module 'node:http2' { export * from 'http2'; } declare module 'http2' { import EventEmitter = require('node:events'); import * as fs from 'node:fs'; import * as net from 'node:net'; import * as stream from 'node:stream'; import * as tls from 'node:tls'; import * as url from 'node:ur...
9aff68f1b847b846d3d50a58c9f8f99389bedd0258d1b1c201f11b97ecfd36f8
TypeScript
56,734
962
declare module 'node:http2' { export * from 'http2'; } declare module 'http2' { import EventEmitter = require('node:events'); import * as fs from 'node:fs'; import * as net from 'node:net'; import * as stream from 'node:stream'; import * as tls from 'node:tls'; import * as url from 'node:ur...
2f69728fd1ca1f381879bbf20a42ae47a8f7286e000afd138c6cf870d90d882f
TypeScript
56,954
968
declare module 'node:http2' { export * from 'http2'; } declare module 'http2' { import EventEmitter = require('node:events'); import * as fs from 'node:fs'; import * as net from 'node:net'; import * as stream from 'node:stream'; import * as tls from 'node:tls'; import * as url from 'node:ur...