@integration-app/react 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/node_modules/@compwright/namecase/LICENSE +26 -0
- package/node_modules/@compwright/namecase/README.md +49 -0
- package/node_modules/@compwright/namecase/bin/namecase +28 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js +4 -0
- package/node_modules/@compwright/namecase/dist/namecase.min.js.map +1 -0
- package/node_modules/@compwright/namecase/package.json +46 -0
- package/node_modules/@compwright/namecase/src/index.js +146 -0
- package/node_modules/@integration-app/sdk/bundle.js +404 -262
- package/node_modules/@integration-app/sdk/bundle.js.map +1 -1
- package/node_modules/@integration-app/sdk/client.d.ts +3 -3
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.d.ts +3 -7
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js +16 -32
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.js.map +1 -1
- package/node_modules/@integration-app/sdk/integrations/accessors.d.ts +0 -6
- package/node_modules/@integration-app/sdk/integrations/accessors.js +1 -87
- package/node_modules/@integration-app/sdk/integrations/accessors.js.map +1 -1
- package/node_modules/@integration-app/sdk/json-schema/index.d.ts +1 -1
- package/node_modules/@integration-app/sdk/src/client.ts +3 -3
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.test.ts +11 -113
- package/node_modules/@integration-app/sdk/src/data-builder/formulas/case.ts +22 -46
- package/node_modules/@integration-app/sdk/src/integrations/accessors.ts +2 -122
- package/node_modules/@sinclair/typebox/package.json +40 -0
- package/node_modules/@sinclair/typebox/readme.md +740 -0
- package/node_modules/@sinclair/typebox/typebox.d.ts +351 -0
- package/node_modules/@sinclair/typebox/typebox.js +345 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +128 -0
- package/node_modules/@types/node/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/buffer.d.ts +89 -0
- package/node_modules/@types/node/child_process.d.ts +514 -0
- package/node_modules/@types/node/cluster.d.ts +265 -0
- package/node_modules/@types/node/console.d.ts +142 -0
- package/node_modules/@types/node/constants.d.ts +18 -0
- package/node_modules/@types/node/crypto.d.ts +1283 -0
- package/node_modules/@types/node/dgram.d.ts +144 -0
- package/node_modules/@types/node/dns.d.ts +387 -0
- package/node_modules/@types/node/domain.d.ts +27 -0
- package/node_modules/@types/node/events.d.ts +82 -0
- package/node_modules/@types/node/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/fs.d.ts +2281 -0
- package/node_modules/@types/node/globals.d.ts +747 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +580 -0
- package/node_modules/@types/node/http2.d.ts +962 -0
- package/node_modules/@types/node/https.d.ts +271 -0
- package/node_modules/@types/node/index.d.ts +98 -0
- package/node_modules/@types/node/inspector.d.ts +3051 -0
- package/node_modules/@types/node/module.d.ts +56 -0
- package/node_modules/@types/node/net.d.ts +308 -0
- package/node_modules/@types/node/os.d.ts +243 -0
- package/node_modules/@types/node/package.json +232 -0
- package/node_modules/@types/node/path.d.ts +168 -0
- package/node_modules/@types/node/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/process.d.ts +413 -0
- package/node_modules/@types/node/punycode.d.ts +78 -0
- package/node_modules/@types/node/querystring.d.ts +31 -0
- package/node_modules/@types/node/readline.d.ts +174 -0
- package/node_modules/@types/node/repl.d.ts +398 -0
- package/node_modules/@types/node/stream.d.ts +359 -0
- package/node_modules/@types/node/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/timers.d.ts +19 -0
- package/node_modules/@types/node/tls.d.ts +784 -0
- package/node_modules/@types/node/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/assert.d.ts +128 -0
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +229 -0
- package/node_modules/@types/node/ts4.8/buffer.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/child_process.d.ts +514 -0
- package/node_modules/@types/node/ts4.8/cluster.d.ts +265 -0
- package/node_modules/@types/node/ts4.8/console.d.ts +142 -0
- package/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/node_modules/@types/node/ts4.8/crypto.d.ts +1283 -0
- package/node_modules/@types/node/ts4.8/dgram.d.ts +144 -0
- package/node_modules/@types/node/ts4.8/dns.d.ts +387 -0
- package/node_modules/@types/node/ts4.8/domain.d.ts +27 -0
- package/node_modules/@types/node/ts4.8/events.d.ts +82 -0
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +572 -0
- package/node_modules/@types/node/ts4.8/fs.d.ts +2281 -0
- package/node_modules/@types/node/ts4.8/globals.d.ts +746 -0
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts4.8/http.d.ts +580 -0
- package/node_modules/@types/node/ts4.8/http2.d.ts +962 -0
- package/node_modules/@types/node/ts4.8/https.d.ts +271 -0
- package/node_modules/@types/node/ts4.8/index.d.ts +53 -0
- package/node_modules/@types/node/ts4.8/inspector.d.ts +3051 -0
- package/node_modules/@types/node/ts4.8/module.d.ts +56 -0
- package/node_modules/@types/node/ts4.8/net.d.ts +308 -0
- package/node_modules/@types/node/ts4.8/os.d.ts +243 -0
- package/node_modules/@types/node/ts4.8/path.d.ts +168 -0
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +274 -0
- package/node_modules/@types/node/ts4.8/process.d.ts +413 -0
- package/node_modules/@types/node/ts4.8/punycode.d.ts +78 -0
- package/node_modules/@types/node/ts4.8/querystring.d.ts +31 -0
- package/node_modules/@types/node/ts4.8/readline.d.ts +174 -0
- package/node_modules/@types/node/ts4.8/repl.d.ts +398 -0
- package/node_modules/@types/node/ts4.8/stream.d.ts +359 -0
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +10 -0
- package/node_modules/@types/node/ts4.8/timers.d.ts +19 -0
- package/node_modules/@types/node/ts4.8/tls.d.ts +784 -0
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +64 -0
- package/node_modules/@types/node/ts4.8/tty.d.ts +69 -0
- package/node_modules/@types/node/ts4.8/url.d.ts +149 -0
- package/node_modules/@types/node/ts4.8/util.d.ts +216 -0
- package/node_modules/@types/node/ts4.8/v8.d.ts +190 -0
- package/node_modules/@types/node/ts4.8/vm.d.ts +155 -0
- package/node_modules/@types/node/ts4.8/wasi.d.ts +89 -0
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/ts4.8/zlib.d.ts +364 -0
- package/node_modules/@types/node/tty.d.ts +69 -0
- package/node_modules/@types/node/url.d.ts +149 -0
- package/node_modules/@types/node/util.d.ts +216 -0
- package/node_modules/@types/node/v8.d.ts +190 -0
- package/node_modules/@types/node/vm.d.ts +155 -0
- package/node_modules/@types/node/wasi.d.ts +89 -0
- package/node_modules/@types/node/worker_threads.d.ts +241 -0
- package/node_modules/@types/node/zlib.d.ts +364 -0
- package/package.json +2 -5
- package/node_modules/@integration-app/sdk/.DS_Store +0 -0
- package/node_modules/@integration-app/sdk/.gitignore +0 -11
- package/node_modules/@integration-app/sdk/.npmignore +0 -0
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.d.ts +0 -23
- package/node_modules/@integration-app/sdk/app-data-collections/app-data-collections.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.d.ts +0 -20
- package/node_modules/@integration-app/sdk/app-data-schemas/app-data-schemas.js.map +0 -1
- package/node_modules/@integration-app/sdk/app-events/app-events.d.ts +0 -44
- package/node_modules/@integration-app/sdk/app-events/app-events.js.map +0 -1
- package/node_modules/@integration-app/sdk/connection-client.d.ts +0 -12
- package/node_modules/@integration-app/sdk/connection-client.js +0 -31
- package/node_modules/@integration-app/sdk/connection-client.js.map +0 -1
- package/node_modules/@integration-app/sdk/connections/connections.d.ts +0 -46
- package/node_modules/@integration-app/sdk/connections/connections.js.map +0 -1
- package/node_modules/@integration-app/sdk/connector-api/connector-api.d.ts +0 -157
- package/node_modules/@integration-app/sdk/connector-api/connector-api.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/findExternalRecordId.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js +0 -2
- package/node_modules/@integration-app/sdk/data-builder/first-name.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.d.ts +0 -10
- package/node_modules/@integration-app/sdk/data-builder/formulas/anyOfOption.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/base.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js +0 -246
- package/node_modules/@integration-app/sdk/data-builder/formulas/case.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js +0 -85
- package/node_modules/@integration-app/sdk/data-builder/formulas/concat.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js +0 -64
- package/node_modules/@integration-app/sdk/data-builder/formulas/copy.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js +0 -44
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractDate.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js +0 -44
- package/node_modules/@integration-app/sdk/data-builder/formulas/extractTime.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/findAppRecordId.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js +0 -26
- package/node_modules/@integration-app/sdk/data-builder/formulas/findExternalRecordId.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js +0 -14
- package/node_modules/@integration-app/sdk/data-builder/formulas/first-name.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js +0 -63
- package/node_modules/@integration-app/sdk/data-builder/formulas/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js +0 -112
- package/node_modules/@integration-app/sdk/data-builder/formulas/iterate.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js +0 -18
- package/node_modules/@integration-app/sdk/data-builder/formulas/lookup.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js +0 -114
- package/node_modules/@integration-app/sdk/data-builder/formulas/map.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js +0 -49
- package/node_modules/@integration-app/sdk/data-builder/formulas/tpl.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-builder/formulas/types.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/index.test.js +0 -295
- package/node_modules/@integration-app/sdk/data-builder/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js +0 -775
- package/node_modules/@integration-app/sdk/data-builder/locators.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/conditions.d.ts +0 -0
- package/node_modules/@integration-app/sdk/data-filter/conditions.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/data-filter.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/index.test.js +0 -43
- package/node_modules/@integration-app/sdk/data-filter/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js +0 -490
- package/node_modules/@integration-app/sdk/data-filter/operators.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-links/data-links.d.ts +0 -58
- package/node_modules/@integration-app/sdk/data-links/data-links.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/data-schema/index.test.js +0 -86
- package/node_modules/@integration-app/sdk/data-schema/index.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/data-sources/data-sources.d.ts +0 -41
- package/node_modules/@integration-app/sdk/data-sources/data-sources.js.map +0 -1
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.d.ts +0 -30
- package/node_modules/@integration-app/sdk/endpoints/endpoint-spec.js.map +0 -1
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.d.ts +0 -29
- package/node_modules/@integration-app/sdk/field-mappings/field-mappings.js.map +0 -1
- package/node_modules/@integration-app/sdk/flow-runs/flow-runs.d.ts +0 -51
- package/node_modules/@integration-app/sdk/flow-runs/flow-runs.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/flows.d.ts +0 -156
- package/node_modules/@integration-app/sdk/flows/flows.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.d.ts +0 -3
- package/node_modules/@integration-app/sdk/flows/nodes/data-record-delete-trigger.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.d.ts +0 -25
- package/node_modules/@integration-app/sdk/flows/nodes/nodes.js.map +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/flows/utils.test.js +0 -62
- package/node_modules/@integration-app/sdk/flows/utils.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.d.ts +0 -21
- package/node_modules/@integration-app/sdk/integration-elements/integration-elements.js.map +0 -1
- package/node_modules/@integration-app/sdk/integrations/integrations.d.ts +0 -48
- package/node_modules/@integration-app/sdk/integrations/integrations.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js +0 -194
- package/node_modules/@integration-app/sdk/json-schema/json-schema.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js +0 -352
- package/node_modules/@integration-app/sdk/json-schema/schema-builder.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/jwt.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/jwt.test.js +0 -9
- package/node_modules/@integration-app/sdk/jwt.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/package-lock.json +0 -3834
- package/node_modules/@integration-app/sdk/udm/activities.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/udm/activities.test.js +0 -40
- package/node_modules/@integration-app/sdk/udm/activities.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/campaign-members.d.ts +0 -45
- package/node_modules/@integration-app/sdk/udm/campaign-members.js +0 -99
- package/node_modules/@integration-app/sdk/udm/campaign-members.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.test.d.ts +0 -1
- package/node_modules/@integration-app/sdk/udm/contacts.test.js +0 -136
- package/node_modules/@integration-app/sdk/udm/contacts.test.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-activities.d.ts +0 -17
- package/node_modules/@integration-app/sdk/udm/crm-activities.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-activity.d.ts +0 -11
- package/node_modules/@integration-app/sdk/udm/crm-activity.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-companies.d.ts +0 -14
- package/node_modules/@integration-app/sdk/udm/crm-companies.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-contact.d.ts +0 -10
- package/node_modules/@integration-app/sdk/udm/crm-contact.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-contacts.d.ts +0 -16
- package/node_modules/@integration-app/sdk/udm/crm-contacts.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-deals.d.ts +0 -15
- package/node_modules/@integration-app/sdk/udm/crm-deals.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/crm-leads.d.ts +0 -16
- package/node_modules/@integration-app/sdk/udm/crm-leads.js.map +0 -1
- package/node_modules/@integration-app/sdk/udm/members.d.ts +0 -45
- package/node_modules/@integration-app/sdk/udm/members.js.map +0 -1
- package/node_modules/@integration-app/sdk/users/users.d.ts +0 -5
- package/node_modules/@integration-app/sdk/users/users.js.map +0 -1
@@ -0,0 +1,64 @@
|
|
1
|
+
declare module 'trace_events' {
|
2
|
+
/**
|
3
|
+
* The `Tracing` object is used to enable or disable tracing for sets of
|
4
|
+
* categories. Instances are created using the
|
5
|
+
* `trace_events.createTracing()` method.
|
6
|
+
*
|
7
|
+
* When created, the `Tracing` object is disabled. Calling the
|
8
|
+
* `tracing.enable()` method adds the categories to the set of enabled trace
|
9
|
+
* event categories. Calling `tracing.disable()` will remove the categories
|
10
|
+
* from the set of enabled trace event categories.
|
11
|
+
*/
|
12
|
+
interface Tracing {
|
13
|
+
/**
|
14
|
+
* A comma-separated list of the trace event categories covered by this
|
15
|
+
* `Tracing` object.
|
16
|
+
*/
|
17
|
+
readonly categories: string;
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Disables this `Tracing` object.
|
21
|
+
*
|
22
|
+
* Only trace event categories _not_ covered by other enabled `Tracing`
|
23
|
+
* objects and _not_ specified by the `--trace-event-categories` flag
|
24
|
+
* will be disabled.
|
25
|
+
*/
|
26
|
+
disable(): void;
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Enables this `Tracing` object for the set of categories covered by
|
30
|
+
* the `Tracing` object.
|
31
|
+
*/
|
32
|
+
enable(): void;
|
33
|
+
|
34
|
+
/**
|
35
|
+
* `true` only if the `Tracing` object has been enabled.
|
36
|
+
*/
|
37
|
+
readonly enabled: boolean;
|
38
|
+
}
|
39
|
+
|
40
|
+
interface CreateTracingOptions {
|
41
|
+
/**
|
42
|
+
* An array of trace category names. Values included in the array are
|
43
|
+
* coerced to a string when possible. An error will be thrown if the
|
44
|
+
* value cannot be coerced.
|
45
|
+
*/
|
46
|
+
categories: string[];
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Creates and returns a Tracing object for the given set of categories.
|
51
|
+
*/
|
52
|
+
function createTracing(options: CreateTracingOptions): Tracing;
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Returns a comma-separated list of all currently-enabled trace event
|
56
|
+
* categories. The current set of enabled trace event categories is
|
57
|
+
* determined by the union of all currently-enabled `Tracing` objects and
|
58
|
+
* any categories enabled using the `--trace-event-categories` flag.
|
59
|
+
*/
|
60
|
+
function getEnabledCategories(): string | undefined;
|
61
|
+
}
|
62
|
+
declare module 'node:trace_events' {
|
63
|
+
export * from 'trace_events';
|
64
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
declare module 'tty' {
|
2
|
+
import * as net from 'net';
|
3
|
+
|
4
|
+
function isatty(fd: number): boolean;
|
5
|
+
class ReadStream extends net.Socket {
|
6
|
+
constructor(fd: number, options?: net.SocketConstructorOpts);
|
7
|
+
isRaw: boolean;
|
8
|
+
setRawMode(mode: boolean): this;
|
9
|
+
isTTY: boolean;
|
10
|
+
}
|
11
|
+
/**
|
12
|
+
* -1 - to the left from cursor
|
13
|
+
* 0 - the entire line
|
14
|
+
* 1 - to the right from cursor
|
15
|
+
*/
|
16
|
+
type Direction = -1 | 0 | 1;
|
17
|
+
class WriteStream extends net.Socket {
|
18
|
+
constructor(fd: number);
|
19
|
+
addListener(event: string, listener: (...args: any[]) => void): this;
|
20
|
+
addListener(event: "resize", listener: () => void): this;
|
21
|
+
|
22
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
23
|
+
emit(event: "resize"): boolean;
|
24
|
+
|
25
|
+
on(event: string, listener: (...args: any[]) => void): this;
|
26
|
+
on(event: "resize", listener: () => void): this;
|
27
|
+
|
28
|
+
once(event: string, listener: (...args: any[]) => void): this;
|
29
|
+
once(event: "resize", listener: () => void): this;
|
30
|
+
|
31
|
+
prependListener(event: string, listener: (...args: any[]) => void): this;
|
32
|
+
prependListener(event: "resize", listener: () => void): this;
|
33
|
+
|
34
|
+
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
35
|
+
prependOnceListener(event: "resize", listener: () => void): this;
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Clears the current line of this WriteStream in a direction identified by `dir`.
|
39
|
+
*/
|
40
|
+
clearLine(dir: Direction, callback?: () => void): boolean;
|
41
|
+
/**
|
42
|
+
* Clears this `WriteStream` from the current cursor down.
|
43
|
+
*/
|
44
|
+
clearScreenDown(callback?: () => void): boolean;
|
45
|
+
/**
|
46
|
+
* Moves this WriteStream's cursor to the specified position.
|
47
|
+
*/
|
48
|
+
cursorTo(x: number, y?: number, callback?: () => void): boolean;
|
49
|
+
cursorTo(x: number, callback: () => void): boolean;
|
50
|
+
/**
|
51
|
+
* Moves this WriteStream's cursor relative to its current position.
|
52
|
+
*/
|
53
|
+
moveCursor(dx: number, dy: number, callback?: () => void): boolean;
|
54
|
+
/**
|
55
|
+
* @default `process.env`
|
56
|
+
*/
|
57
|
+
getColorDepth(env?: {}): number;
|
58
|
+
hasColors(depth?: number): boolean;
|
59
|
+
hasColors(env?: {}): boolean;
|
60
|
+
hasColors(depth: number, env?: {}): boolean;
|
61
|
+
getWindowSize(): [number, number];
|
62
|
+
columns: number;
|
63
|
+
rows: number;
|
64
|
+
isTTY: boolean;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
declare module 'node:tty' {
|
68
|
+
export * from 'tty';
|
69
|
+
}
|
@@ -0,0 +1,149 @@
|
|
1
|
+
declare module 'url' {
|
2
|
+
import { ParsedUrlQuery, ParsedUrlQueryInput } from 'querystring';
|
3
|
+
|
4
|
+
// Input to `url.format`
|
5
|
+
interface UrlObject {
|
6
|
+
auth?: string | null | undefined;
|
7
|
+
hash?: string | null | undefined;
|
8
|
+
host?: string | null | undefined;
|
9
|
+
hostname?: string | null | undefined;
|
10
|
+
href?: string | null | undefined;
|
11
|
+
pathname?: string | null | undefined;
|
12
|
+
protocol?: string | null | undefined;
|
13
|
+
search?: string | null | undefined;
|
14
|
+
slashes?: boolean | null | undefined;
|
15
|
+
port?: string | number | null | undefined;
|
16
|
+
query?: string | null | ParsedUrlQueryInput | undefined;
|
17
|
+
}
|
18
|
+
|
19
|
+
// Output of `url.parse`
|
20
|
+
interface Url {
|
21
|
+
auth: string | null;
|
22
|
+
hash: string | null;
|
23
|
+
host: string | null;
|
24
|
+
hostname: string | null;
|
25
|
+
href: string;
|
26
|
+
path: string | null;
|
27
|
+
pathname: string | null;
|
28
|
+
protocol: string | null;
|
29
|
+
search: string | null;
|
30
|
+
slashes: boolean | null;
|
31
|
+
port: string | null;
|
32
|
+
query: string | null | ParsedUrlQuery;
|
33
|
+
}
|
34
|
+
|
35
|
+
interface UrlWithParsedQuery extends Url {
|
36
|
+
query: ParsedUrlQuery;
|
37
|
+
}
|
38
|
+
|
39
|
+
interface UrlWithStringQuery extends Url {
|
40
|
+
query: string | null;
|
41
|
+
}
|
42
|
+
|
43
|
+
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
44
|
+
function parse(urlStr: string): UrlWithStringQuery;
|
45
|
+
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
46
|
+
function parse(urlStr: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery;
|
47
|
+
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
48
|
+
function parse(urlStr: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery;
|
49
|
+
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
50
|
+
function parse(urlStr: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url;
|
51
|
+
|
52
|
+
function format(URL: URL, options?: URLFormatOptions): string;
|
53
|
+
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
54
|
+
function format(urlObject: UrlObject | string): string;
|
55
|
+
/** @deprecated since v11.0.0 - Use the WHATWG URL API. */
|
56
|
+
function resolve(from: string, to: string): string;
|
57
|
+
|
58
|
+
function domainToASCII(domain: string): string;
|
59
|
+
function domainToUnicode(domain: string): string;
|
60
|
+
|
61
|
+
/**
|
62
|
+
* This function ensures the correct decodings of percent-encoded characters as
|
63
|
+
* well as ensuring a cross-platform valid absolute path string.
|
64
|
+
* @param url The file URL string or URL object to convert to a path.
|
65
|
+
*/
|
66
|
+
function fileURLToPath(url: string | URL): string;
|
67
|
+
|
68
|
+
/**
|
69
|
+
* This function ensures that path is resolved absolutely, and that the URL
|
70
|
+
* control characters are correctly encoded when converting into a File URL.
|
71
|
+
* @param url The path to convert to a File URL.
|
72
|
+
*/
|
73
|
+
function pathToFileURL(url: string): URL;
|
74
|
+
|
75
|
+
interface URLFormatOptions {
|
76
|
+
auth?: boolean | undefined;
|
77
|
+
fragment?: boolean | undefined;
|
78
|
+
search?: boolean | undefined;
|
79
|
+
unicode?: boolean | undefined;
|
80
|
+
}
|
81
|
+
|
82
|
+
class URL {
|
83
|
+
constructor(input: string, base?: string | URL);
|
84
|
+
hash: string;
|
85
|
+
host: string;
|
86
|
+
hostname: string;
|
87
|
+
href: string;
|
88
|
+
readonly origin: string;
|
89
|
+
password: string;
|
90
|
+
pathname: string;
|
91
|
+
port: string;
|
92
|
+
protocol: string;
|
93
|
+
search: string;
|
94
|
+
readonly searchParams: URLSearchParams;
|
95
|
+
username: string;
|
96
|
+
toString(): string;
|
97
|
+
toJSON(): string;
|
98
|
+
}
|
99
|
+
|
100
|
+
class URLSearchParams implements Iterable<[string, string]> {
|
101
|
+
constructor(init?: URLSearchParams | string | Record<string, string | ReadonlyArray<string>> | Iterable<[string, string]> | ReadonlyArray<[string, string]>);
|
102
|
+
append(name: string, value: string): void;
|
103
|
+
delete(name: string): void;
|
104
|
+
entries(): IterableIterator<[string, string]>;
|
105
|
+
forEach(callback: (value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: any): void;
|
106
|
+
get(name: string): string | null;
|
107
|
+
getAll(name: string): string[];
|
108
|
+
has(name: string): boolean;
|
109
|
+
keys(): IterableIterator<string>;
|
110
|
+
set(name: string, value: string): void;
|
111
|
+
sort(): void;
|
112
|
+
toString(): string;
|
113
|
+
values(): IterableIterator<string>;
|
114
|
+
[Symbol.iterator](): IterableIterator<[string, string]>;
|
115
|
+
}
|
116
|
+
|
117
|
+
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
|
118
|
+
global {
|
119
|
+
interface URLSearchParams extends _URLSearchParams {}
|
120
|
+
interface URL extends _URL {}
|
121
|
+
interface Global {
|
122
|
+
URL: typeof _URL;
|
123
|
+
URLSearchParams: typeof _URLSearchParams;
|
124
|
+
}
|
125
|
+
/**
|
126
|
+
* `URL` class is a global reference for `require('url').URL`
|
127
|
+
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
128
|
+
* @since v10.0.0
|
129
|
+
*/
|
130
|
+
var URL:
|
131
|
+
// For compatibility with "dom" and "webworker" URL declarations
|
132
|
+
typeof globalThis extends { onmessage: any, URL: infer URL }
|
133
|
+
? URL
|
134
|
+
: typeof _URL;
|
135
|
+
/**
|
136
|
+
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
|
137
|
+
* https://nodejs.org/api/url.html#class-urlsearchparams
|
138
|
+
* @since v10.0.0
|
139
|
+
*/
|
140
|
+
var URLSearchParams:
|
141
|
+
// For compatibility with "dom" and "webworker" URLSearchParams declarations
|
142
|
+
typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
|
143
|
+
? URLSearchParams
|
144
|
+
: typeof _URLSearchParams;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
declare module 'node:url' {
|
148
|
+
export * from 'url';
|
149
|
+
}
|
@@ -0,0 +1,216 @@
|
|
1
|
+
declare module 'util' {
|
2
|
+
interface InspectOptions extends NodeJS.InspectOptions { }
|
3
|
+
type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module';
|
4
|
+
type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => string;
|
5
|
+
interface InspectOptionsStylized extends InspectOptions {
|
6
|
+
stylize(text: string, styleType: Style): string;
|
7
|
+
}
|
8
|
+
function format(format?: any, ...param: any[]): string;
|
9
|
+
function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string;
|
10
|
+
function getSystemErrorName(err: number): string;
|
11
|
+
/** @deprecated since v0.11.3 - use a third party module instead. */
|
12
|
+
function log(string: string): void;
|
13
|
+
function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string;
|
14
|
+
function inspect(object: any, options: InspectOptions): string;
|
15
|
+
namespace inspect {
|
16
|
+
let colors: NodeJS.Dict<[number, number]>;
|
17
|
+
let styles: {
|
18
|
+
[K in Style]: string
|
19
|
+
};
|
20
|
+
let defaultOptions: InspectOptions;
|
21
|
+
/**
|
22
|
+
* Allows changing inspect settings from the repl.
|
23
|
+
*/
|
24
|
+
let replDefaults: InspectOptions;
|
25
|
+
const custom: unique symbol;
|
26
|
+
}
|
27
|
+
/** @deprecated since v4.0.0 - use `Array.isArray()` instead. */
|
28
|
+
function isArray(object: any): object is any[];
|
29
|
+
/** @deprecated since v4.0.0 - use `util.types.isRegExp()` instead. */
|
30
|
+
function isRegExp(object: any): object is RegExp;
|
31
|
+
/** @deprecated since v4.0.0 - use `util.types.isDate()` instead. */
|
32
|
+
function isDate(object: any): object is Date;
|
33
|
+
/** @deprecated since v4.0.0 - use `util.types.isNativeError()` instead. */
|
34
|
+
function isError(object: any): object is Error;
|
35
|
+
function inherits(constructor: any, superConstructor: any): void;
|
36
|
+
type DebugLoggerFunction = (msg: string, ...param: any[]) => void;
|
37
|
+
interface DebugLogger extends DebugLoggerFunction {
|
38
|
+
enabled: boolean;
|
39
|
+
}
|
40
|
+
function debuglog(key: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger;
|
41
|
+
const debug: typeof debuglog;
|
42
|
+
/** @deprecated since v4.0.0 - use `typeof value === 'boolean'` instead. */
|
43
|
+
function isBoolean(object: any): object is boolean;
|
44
|
+
/** @deprecated since v4.0.0 - use `Buffer.isBuffer()` instead. */
|
45
|
+
function isBuffer(object: any): object is Buffer;
|
46
|
+
/** @deprecated since v4.0.0 - use `typeof value === 'function'` instead. */
|
47
|
+
function isFunction(object: any): boolean;
|
48
|
+
/** @deprecated since v4.0.0 - use `value === null` instead. */
|
49
|
+
function isNull(object: any): object is null;
|
50
|
+
/** @deprecated since v4.0.0 - use `value === null || value === undefined` instead. */
|
51
|
+
function isNullOrUndefined(object: any): object is null | undefined;
|
52
|
+
/** @deprecated since v4.0.0 - use `typeof value === 'number'` instead. */
|
53
|
+
function isNumber(object: any): object is number;
|
54
|
+
/** @deprecated since v4.0.0 - use `value !== null && typeof value === 'object'` instead. */
|
55
|
+
function isObject(object: any): boolean;
|
56
|
+
/** @deprecated since v4.0.0 - use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead. */
|
57
|
+
function isPrimitive(object: any): boolean;
|
58
|
+
/** @deprecated since v4.0.0 - use `typeof value === 'string'` instead. */
|
59
|
+
function isString(object: any): object is string;
|
60
|
+
/** @deprecated since v4.0.0 - use `typeof value === 'symbol'` instead. */
|
61
|
+
function isSymbol(object: any): object is symbol;
|
62
|
+
/** @deprecated since v4.0.0 - use `value === undefined` instead. */
|
63
|
+
function isUndefined(object: any): object is undefined;
|
64
|
+
function deprecate<T extends Function>(fn: T, message: string, code?: string): T;
|
65
|
+
function isDeepStrictEqual(val1: any, val2: any): boolean;
|
66
|
+
|
67
|
+
function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
|
68
|
+
function callbackify<TResult>(fn: () => Promise<TResult>): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
69
|
+
function callbackify<T1>(fn: (arg1: T1) => Promise<void>): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
|
70
|
+
function callbackify<T1, TResult>(fn: (arg1: T1) => Promise<TResult>): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
|
71
|
+
function callbackify<T1, T2>(fn: (arg1: T1, arg2: T2) => Promise<void>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void;
|
72
|
+
function callbackify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2) => Promise<TResult>): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
73
|
+
function callbackify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void;
|
74
|
+
function callbackify<T1, T2, T3, TResult>(
|
75
|
+
fn: (arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
76
|
+
function callbackify<T1, T2, T3, T4>(
|
77
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void;
|
78
|
+
function callbackify<T1, T2, T3, T4, TResult>(
|
79
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
80
|
+
function callbackify<T1, T2, T3, T4, T5>(
|
81
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void;
|
82
|
+
function callbackify<T1, T2, T3, T4, T5, TResult>(
|
83
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>,
|
84
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
85
|
+
function callbackify<T1, T2, T3, T4, T5, T6>(
|
86
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<void>,
|
87
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException) => void) => void;
|
88
|
+
function callbackify<T1, T2, T3, T4, T5, T6, TResult>(
|
89
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>
|
90
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
|
91
|
+
|
92
|
+
interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
|
93
|
+
__promisify__: TCustom;
|
94
|
+
}
|
95
|
+
|
96
|
+
interface CustomPromisifySymbol<TCustom extends Function> extends Function {
|
97
|
+
[promisify.custom]: TCustom;
|
98
|
+
}
|
99
|
+
|
100
|
+
type CustomPromisify<TCustom extends Function> = CustomPromisifySymbol<TCustom> | CustomPromisifyLegacy<TCustom>;
|
101
|
+
|
102
|
+
function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
|
103
|
+
function promisify<TResult>(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise<TResult>;
|
104
|
+
function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
|
105
|
+
function promisify<T1, TResult>(fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void): (arg1: T1) => Promise<TResult>;
|
106
|
+
function promisify<T1>(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise<void>;
|
107
|
+
function promisify<T1, T2, TResult>(fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise<TResult>;
|
108
|
+
function promisify<T1, T2>(fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2) => Promise<void>;
|
109
|
+
function promisify<T1, T2, T3, TResult>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void):
|
110
|
+
(arg1: T1, arg2: T2, arg3: T3) => Promise<TResult>;
|
111
|
+
function promisify<T1, T2, T3>(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise<void>;
|
112
|
+
function promisify<T1, T2, T3, T4, TResult>(
|
113
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void,
|
114
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<TResult>;
|
115
|
+
function promisify<T1, T2, T3, T4>(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void):
|
116
|
+
(arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise<void>;
|
117
|
+
function promisify<T1, T2, T3, T4, T5, TResult>(
|
118
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void,
|
119
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<TResult>;
|
120
|
+
function promisify<T1, T2, T3, T4, T5>(
|
121
|
+
fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
|
122
|
+
): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
|
123
|
+
function promisify(fn: Function): Function;
|
124
|
+
namespace promisify {
|
125
|
+
const custom: unique symbol;
|
126
|
+
}
|
127
|
+
|
128
|
+
namespace types {
|
129
|
+
function isAnyArrayBuffer(object: any): object is ArrayBufferLike;
|
130
|
+
function isArgumentsObject(object: any): object is IArguments;
|
131
|
+
function isArrayBuffer(object: any): object is ArrayBuffer;
|
132
|
+
function isArrayBufferView(object: any): object is NodeJS.ArrayBufferView;
|
133
|
+
function isAsyncFunction(object: any): boolean;
|
134
|
+
function isBigInt64Array(value: any): value is BigInt64Array;
|
135
|
+
function isBigUint64Array(value: any): value is BigUint64Array;
|
136
|
+
function isBooleanObject(object: any): object is Boolean;
|
137
|
+
function isBoxedPrimitive(object: any): object is String | Number | BigInt | Boolean | Symbol;
|
138
|
+
function isDataView(object: any): object is DataView;
|
139
|
+
function isDate(object: any): object is Date;
|
140
|
+
function isExternal(object: any): boolean;
|
141
|
+
function isFloat32Array(object: any): object is Float32Array;
|
142
|
+
function isFloat64Array(object: any): object is Float64Array;
|
143
|
+
function isGeneratorFunction(object: any): object is GeneratorFunction;
|
144
|
+
function isGeneratorObject(object: any): object is Generator;
|
145
|
+
function isInt8Array(object: any): object is Int8Array;
|
146
|
+
function isInt16Array(object: any): object is Int16Array;
|
147
|
+
function isInt32Array(object: any): object is Int32Array;
|
148
|
+
function isMap<T>(
|
149
|
+
object: T | {},
|
150
|
+
): object is T extends ReadonlyMap<any, any>
|
151
|
+
? unknown extends T
|
152
|
+
? never
|
153
|
+
: ReadonlyMap<any, any>
|
154
|
+
: Map<any, any>;
|
155
|
+
function isMapIterator(object: any): boolean;
|
156
|
+
function isModuleNamespaceObject(value: any): boolean;
|
157
|
+
function isNativeError(object: any): object is Error;
|
158
|
+
function isNumberObject(object: any): object is Number;
|
159
|
+
function isPromise(object: any): object is Promise<any>;
|
160
|
+
function isProxy(object: any): boolean;
|
161
|
+
function isRegExp(object: any): object is RegExp;
|
162
|
+
function isSet<T>(
|
163
|
+
object: T | {},
|
164
|
+
): object is T extends ReadonlySet<any>
|
165
|
+
? unknown extends T
|
166
|
+
? never
|
167
|
+
: ReadonlySet<any>
|
168
|
+
: Set<any>;
|
169
|
+
function isSetIterator(object: any): boolean;
|
170
|
+
function isSharedArrayBuffer(object: any): object is SharedArrayBuffer;
|
171
|
+
function isStringObject(object: any): object is String;
|
172
|
+
function isSymbolObject(object: any): object is Symbol;
|
173
|
+
function isTypedArray(object: any): object is NodeJS.TypedArray;
|
174
|
+
function isUint8Array(object: any): object is Uint8Array;
|
175
|
+
function isUint8ClampedArray(object: any): object is Uint8ClampedArray;
|
176
|
+
function isUint16Array(object: any): object is Uint16Array;
|
177
|
+
function isUint32Array(object: any): object is Uint32Array;
|
178
|
+
function isWeakMap(object: any): object is WeakMap<any, any>;
|
179
|
+
function isWeakSet(object: any): object is WeakSet<any>;
|
180
|
+
}
|
181
|
+
|
182
|
+
class TextDecoder {
|
183
|
+
readonly encoding: string;
|
184
|
+
readonly fatal: boolean;
|
185
|
+
readonly ignoreBOM: boolean;
|
186
|
+
constructor(
|
187
|
+
encoding?: string,
|
188
|
+
options?: { fatal?: boolean | undefined; ignoreBOM?: boolean | undefined }
|
189
|
+
);
|
190
|
+
decode(
|
191
|
+
input?: NodeJS.ArrayBufferView | ArrayBuffer | null,
|
192
|
+
options?: { stream?: boolean | undefined }
|
193
|
+
): string;
|
194
|
+
}
|
195
|
+
|
196
|
+
interface EncodeIntoResult {
|
197
|
+
/**
|
198
|
+
* The read Unicode code units of input.
|
199
|
+
*/
|
200
|
+
|
201
|
+
read: number;
|
202
|
+
/**
|
203
|
+
* The written UTF-8 bytes of output.
|
204
|
+
*/
|
205
|
+
written: number;
|
206
|
+
}
|
207
|
+
|
208
|
+
class TextEncoder {
|
209
|
+
readonly encoding: string;
|
210
|
+
encode(input?: string): Uint8Array;
|
211
|
+
encodeInto(input: string, output: Uint8Array): EncodeIntoResult;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
declare module 'node:util' {
|
215
|
+
export * from 'util';
|
216
|
+
}
|