source: frontend/node_modules/html-entities/dist/commonjs/index.js.flow

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * Flowtype definitions for index
3 * Generated by Flowgen from a Typescript Definition
4 * Flowgen v1.13.0
5 * @flow
6 */
7
8export type Level = "xml" | "html4" | "html5" | "all";
9declare interface CommonOptions {
10 level?: Level;
11}
12export type EncodeMode =
13 | "specialChars"
14 | "nonAscii"
15 | "nonAsciiPrintable"
16 | "nonAsciiPrintableOnly"
17 | "extensive";
18export type EncodeOptions = {
19 mode?: EncodeMode,
20 numeric?: "decimal" | "hexadecimal",
21 ...
22} & CommonOptions;
23export type DecodeScope = "strict" | "body" | "attribute";
24export type DecodeOptions = {
25 scope?: DecodeScope,
26 ...
27} & CommonOptions;
28
29/**
30 * Encodes all the necessary (specified by `level`) characters in the text
31 */
32declare export function encode(
33 text: string | void | null,
34 x?: EncodeOptions
35): string;
36
37/**
38 * Decodes a single entity
39 */
40declare export function decodeEntity(
41 entity: string | void | null,
42 x?: CommonOptions
43): string;
44
45/**
46 * Decodes all entities in the text
47 */
48declare export function decode(
49 text: string | void | null,
50 x?: DecodeOptions
51): string;
52declare export {};
Note: See TracBrowser for help on using the repository browser.