瀏覽代碼

Complete documentation

Document previously undocumented classes and functions.
master
TheoryOfNekomata 1 年之前
父節點
當前提交
1e914ad467
共有 1 個檔案被更改,包括 14 行新增0 行删除
  1. +14
    -0
      src/index.ts

+ 14
- 0
src/index.ts 查看文件

@@ -287,6 +287,11 @@ const getInputCheckboxFieldValue = (
return null;
};

/**
* Parses values that can be candidates for a Boolean value.
* @param value - A value.
* @returns The corresponding Boolean value.
*/
const parseBooleanValues = (value: unknown) => {
if (typeof value === 'boolean') {
return value;
@@ -630,9 +635,18 @@ type GetInputTextualFieldValueOptions = {
includeDirectionality?: true;
}

/**
* Class for overloading a string with directionality information.
*/
class TextualValueString extends String {
/**
* The form name of the directionality value.
*/
readonly dirName: string;

/**
* The directionality value.
*/
readonly dir: string;

constructor(value: unknown, dirName: string, dir: string) {


Loading…
取消
儲存