|
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 |
|
|---|
| 8 | export type Level = "xml" | "html4" | "html5" | "all";
|
|---|
| 9 | declare interface CommonOptions {
|
|---|
| 10 | level?: Level;
|
|---|
| 11 | }
|
|---|
| 12 | export type EncodeMode =
|
|---|
| 13 | | "specialChars"
|
|---|
| 14 | | "nonAscii"
|
|---|
| 15 | | "nonAsciiPrintable"
|
|---|
| 16 | | "nonAsciiPrintableOnly"
|
|---|
| 17 | | "extensive";
|
|---|
| 18 | export type EncodeOptions = {
|
|---|
| 19 | mode?: EncodeMode,
|
|---|
| 20 | numeric?: "decimal" | "hexadecimal",
|
|---|
| 21 | ...
|
|---|
| 22 | } & CommonOptions;
|
|---|
| 23 | export type DecodeScope = "strict" | "body" | "attribute";
|
|---|
| 24 | export type DecodeOptions = {
|
|---|
| 25 | scope?: DecodeScope,
|
|---|
| 26 | ...
|
|---|
| 27 | } & CommonOptions;
|
|---|
| 28 |
|
|---|
| 29 | /**
|
|---|
| 30 | * Encodes all the necessary (specified by `level`) characters in the text
|
|---|
| 31 | */
|
|---|
| 32 | declare export function encode(
|
|---|
| 33 | text: string | void | null,
|
|---|
| 34 | x?: EncodeOptions
|
|---|
| 35 | ): string;
|
|---|
| 36 |
|
|---|
| 37 | /**
|
|---|
| 38 | * Decodes a single entity
|
|---|
| 39 | */
|
|---|
| 40 | declare export function decodeEntity(
|
|---|
| 41 | entity: string | void | null,
|
|---|
| 42 | x?: CommonOptions
|
|---|
| 43 | ): string;
|
|---|
| 44 |
|
|---|
| 45 | /**
|
|---|
| 46 | * Decodes all entities in the text
|
|---|
| 47 | */
|
|---|
| 48 | declare export function decode(
|
|---|
| 49 | text: string | void | null,
|
|---|
| 50 | x?: DecodeOptions
|
|---|
| 51 | ): string;
|
|---|
| 52 | declare export {};
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.