@types/webidl-conversions

  • Version 6.1.1
  • Published
  • 7.14 kB
  • No dependencies
  • MIT license

Install

npm i @types/webidl-conversions
yarn add @types/webidl-conversions
pnpm add @types/webidl-conversions

Overview

TypeScript definitions for webidl-conversions

Index

Variables

variable WebIDLConversions

const WebIDLConversions: {
any<V>(V: V, opts?: WebIDLConversions.Options): V;
void(V?: any, opts?: WebIDLConversions.Options): void;
boolean(V: any, opts?: WebIDLConversions.Options): boolean;
byte(V: any, opts?: WebIDLConversions.IntegerOptions): number;
octet(V: any, opts?: WebIDLConversions.IntegerOptions): number;
short(V: any, opts?: WebIDLConversions.IntegerOptions): number;
'unsigned short'(V: any, opts?: WebIDLConversions.IntegerOptions): number;
long(V: any, opts?: WebIDLConversions.IntegerOptions): number;
'unsigned long'(V: any, opts?: WebIDLConversions.IntegerOptions): number;
'long long'(V: any, opts?: WebIDLConversions.IntegerOptions): number;
'unsigned long long'(V: any, opts?: WebIDLConversions.IntegerOptions): number;
double(V: any, opts?: WebIDLConversions.Options): number;
'unrestricted double'(V: any, opts?: WebIDLConversions.Options): number;
float(V: any, opts?: WebIDLConversions.Options): number;
'unrestricted float'(V: any, opts?: WebIDLConversions.Options): number;
DOMString(V: any, opts?: WebIDLConversions.StringOptions): string;
ByteString(V: any, opts?: WebIDLConversions.StringOptions): string;
USVString(V: any, opts?: WebIDLConversions.StringOptions): string;
object<V>(
V: V,
opts?: WebIDLConversions.Options
): V extends object ? V : V & object;
ArrayBuffer(
V: any,
opts?: WebIDLConversions.BufferSourceOptions & {
allowShared?: false | undefined;
}
): ArrayBuffer;
ArrayBuffer(
V: any,
opts?: WebIDLConversions.BufferSourceOptions
): ArrayBufferLike;
DataView(V: any, opts?: WebIDLConversions.BufferSourceOptions): DataView;
Int8Array(V: any, opts?: WebIDLConversions.BufferSourceOptions): Int8Array;
Int16Array(V: any, opts?: WebIDLConversions.BufferSourceOptions): Int16Array;
Int32Array(V: any, opts?: WebIDLConversions.BufferSourceOptions): Int32Array;
Uint8Array(V: any, opts?: WebIDLConversions.BufferSourceOptions): Uint8Array;
Uint16Array(V: any, opts?: WebIDLConversions.BufferSourceOptions): Uint16Array;
Uint32Array(V: any, opts?: WebIDLConversions.BufferSourceOptions): Uint32Array;
Uint8ClampedArray(
V: any,
opts?: WebIDLConversions.BufferSourceOptions
): Uint8ClampedArray;
Float32Array(V: any, opts?: WebIDLConversions.BufferSourceOptions): Float32Array;
Float64Array(V: any, opts?: WebIDLConversions.BufferSourceOptions): Float64Array;
ArrayBufferView(
V: any,
opts?: WebIDLConversions.BufferSourceOptions
): ArrayBufferView;
BufferSource(
V: any,
opts?: WebIDLConversions.BufferSourceOptions & {
allowShared?: false | undefined;
}
): ArrayBuffer | ArrayBufferView;
BufferSource(
V: any,
opts?: WebIDLConversions.BufferSourceOptions
): ArrayBufferLike | ArrayBufferView;
DOMTimeStamp(V: any, opts?: WebIDLConversions.Options): number;
Function<V>(
V: V,
opts?: WebIDLConversions.Options
): V extends (...args: any[]) => any ? V : Function;
VoidFunction<V>(
V: V,
opts?: WebIDLConversions.Options
): V extends (...args: any[]) => any
? (...args: Parameters<V>) => void
: Function;
};

    Interfaces

    interface BufferSourceOptions

    interface BufferSourceOptions extends Options {}

      property allowShared

      allowShared?: boolean | undefined;

        interface Globals

        interface Globals {}

          property Number

          Number: (value?: any) => number;

            property String

            String: (value?: any) => string;

              property TypeError

              TypeError: new (message?: string) => TypeError;

                index signature

                [key: string]: any;

                  interface IntegerOptions

                  interface IntegerOptions extends Options {}

                    property clamp

                    clamp?: boolean | undefined;

                      property enforceRange

                      enforceRange?: boolean | undefined;

                        interface Options

                        interface Options {}

                          property context

                          context?: string | undefined;

                            property globals

                            globals?: Globals | undefined;

                              interface StringOptions

                              interface StringOptions extends Options {}

                                property treatNullAsEmptyString

                                treatNullAsEmptyString?: boolean | undefined;

                                  Type Aliases

                                  type IntegerConversion

                                  type IntegerConversion = (V: any, opts?: IntegerOptions) => number;

                                    type NumberConversion

                                    type NumberConversion = (V: any, opts?: Options) => number;

                                      type StringConversion

                                      type StringConversion = (V: any, opts?: StringOptions) => string;

                                        Package Files (1)

                                        Dependencies (0)

                                        No dependencies.

                                        Dev Dependencies (0)

                                        No dev dependencies.

                                        Peer Dependencies (0)

                                        No peer dependencies.

                                        Badge

                                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/webidl-conversions.

                                        • Markdown
                                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/webidl-conversions)
                                        • HTML
                                          <a href="https://www.jsdocs.io/package/@types/webidl-conversions"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>