0.1.22 • Published 6 months ago

@types/windows-1251 v0.1.22

Weekly downloads
89
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/windows-1251

Summary

This package contains type definitions for windows-1251 (https://github.com/mathiasbynens/windows-1251).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/windows-1251.

index.d.ts

// Type definitions for windows-1251 v0.1.2
// Project: https://github.com/mathiasbynens/windows-1251
// Definitions by: RomanGolovanov <https://github.com/RomanGolovanov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare var windows1251: {
    encode(input:string, options?:{ mode?: windows1251.EncoderMode | undefined }):string;
    decode(text: string, options?:{ mode?: windows1251.DecoderMode | undefined }): string;
    version: string;
    labels: string[];
}

export = windows1251;
export as namespace windows1251;

declare namespace windows1251 {

    type EncoderMode = 'fatal' | 'html';
    type DecoderMode = 'replacement' | 'fatal';

    interface windows1251 {
        encode(input:string, options?:{ mode?: EncoderMode | undefined }):string;
        decode(text: string, options?:{ mode?: DecoderMode | undefined }): string;
    }

}

Additional Details

  • Last updated: Fri, 02 Jul 2021 18:05:39 GMT
  • Dependencies: none
  • Global values: windows1251

Credits

These definitions were written by RomanGolovanov.

0.1.20

8 months ago

0.1.21

7 months ago

0.1.22

6 months ago

0.1.19

3 years ago

0.1.18

8 years ago

0.0.17

8 years ago

0.0.16-alpha

8 years ago

0.0.15-alpha

8 years ago

0.0.14-alpha

8 years ago

0.0.13-alpha

8 years ago

0.0.12-alpha

8 years ago

0.0.11-alpha

8 years ago

0.0.10-alpha

8 years ago

0.0.5-alpha

8 years ago

0.0.4-alpha

8 years ago