styled-exceljs 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,39 @@
1
+ /* codepage.js (C) 2013-present SheetJS -- http://sheetjs.com */
2
+ // TypeScript Version: 2.2
3
+
4
+ /** Codepage index type (integer or string representation) */
5
+ export type CP$Index = number | string;
6
+
7
+ /* Individual codepage converter */
8
+ export interface CP$Conv {
9
+ enc: {[n: string]: number; };
10
+ dec: {[n: number]: string; };
11
+ }
12
+
13
+ /** Encode input type (string, array of characters, Buffer) */
14
+ export type CP$String = string | string[] | Uint8Array;
15
+
16
+ /** Encode output / decode input type */
17
+ export type CP$Data = string | number[] | Uint8Array;
18
+
19
+ /** General utilities */
20
+ export interface CP$Utils {
21
+ decode(cp: CP$Index, data: CP$Data): string;
22
+ encode(cp: CP$Index, data: CP$String, opts?: any): CP$Data;
23
+ hascp(n: number): boolean;
24
+ magic: {[cp: string]: string};
25
+ }
26
+
27
+ /* note: TS cannot export top-level indexer, hence default workaround */
28
+ export interface CP$Module {
29
+ /** Version string */
30
+ version: string;
31
+
32
+ /** Utility Functions */
33
+ utils: CP$Utils;
34
+
35
+ /** Codepage Converters */
36
+ [cp: number]: CP$Conv;
37
+ }
38
+ export const cptable: CP$Module;
39
+ export default cptable;