File: decode-ranges.d.ts

package info (click to toggle)
node-unicode-data 1.6.7%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: javascript: 1,691; makefile: 29; sh: 23
file content (20 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
declare namespace decodeRanges {
	class UnicodeRange {
		readonly begin: number;
		readonly end: number;
		readonly length: number;

		private constructor(begin: number, end: number);

		keys(): Generator<number, void, unknown>;
		values(): Generator<string, void, unknown>;
	}
	export type { UnicodeRange };
}

/**
 * RLE + base64 decode code point ranges.
 */
declare function decodeRanges(input: string): decodeRanges.UnicodeRange[];

export = decodeRanges;