Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@types/text-encoding-utf-8

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/text-encoding-utf-8 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

text-encoding-utf-8/index.d.ts

@@ -8,12 +8,12 @@ // Type definitions for text-encoding-utf-8 1.0

interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
fatal?: boolean | undefined;
ignoreBOM?: boolean | undefined;
}
interface TextDecodeOptions {
stream?: boolean;
stream?: boolean | undefined;
}
interface TextEncoderOptions {
NONSTANDARD_allowLegacyEncoding?: boolean;
NONSTANDARD_allowLegacyEncoding?: boolean | undefined;
}

@@ -34,3 +34,3 @@

interface TextEncodeOptions {
stream?: boolean;
stream?: boolean | undefined;
}

@@ -37,0 +37,0 @@

{
"name": "@types/text-encoding-utf-8",
"version": "1.0.1",
"version": "1.0.2",
"description": "TypeScript definitions for text-encoding-utf-8",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/text-encoding-utf-8",
"license": "MIT",

@@ -14,10 +15,12 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/text-encoding-utf-8"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "853a7a61cc1f353069060e45fccd457989bd95a4da67b22ac4b5a4dd673af002",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "4a0b474db954b203ec0145e24de75d2e68ec0c95f68d752cc14d2ed386e940d7",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,72 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/text-encoding-utf-8
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/text-encoding-utf-8.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/text-encoding-utf-8/index.d.ts)
````ts
// Type definitions for text-encoding-utf-8 1.0
// Project: https://github.com/arv/text-encoding-utf-8
// Definitions by: Paul Taylor <https://github.com/trxcllnt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Fri, 05 Jan 2018 15:44:40 GMT
export namespace TextEncoding {
interface TextDecoderOptions {
fatal?: boolean | undefined;
ignoreBOM?: boolean | undefined;
}
interface TextDecodeOptions {
stream?: boolean | undefined;
}
interface TextEncoderOptions {
NONSTANDARD_allowLegacyEncoding?: boolean | undefined;
}
interface TextDecoder {
encoding: string;
fatal: boolean;
ignoreBOM: boolean;
decode(input?: ArrayBuffer | ArrayBufferView, options?: TextDecodeOptions): string;
}
interface TextEncoder {
encoding: string;
encode(input?: string, options?: TextEncodeOptions): Uint8Array;
}
interface TextEncodeOptions {
stream?: boolean | undefined;
}
interface TextEncoderStatic {
(utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
new (utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
}
interface TextDecoderStatic {
(label?: string, options?: TextDecoderOptions): TextDecoder;
new (label?: string, options?: TextDecoderOptions): TextDecoder;
}
interface TextEncodingStatic {
TextEncoder: TextEncoderStatic;
TextDecoder: TextDecoderStatic;
}
}
export const TextDecoder: TextEncoding.TextDecoderStatic;
export const TextEncoder: TextEncoding.TextEncoderStatic;
export const TextEncoding: TextEncoding.TextEncodingStatic;
export as namespace TextEncoding;
````
### Additional Details
* Last updated: Fri, 02 Jul 2021 21:32:20 GMT
* Dependencies: none
* Global values: TextEncoding
* Global values: `TextEncoding`
# Credits
These definitions were written by Paul Taylor <https://github.com/trxcllnt>.
These definitions were written by [Paul Taylor](https://github.com/trxcllnt).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc