LightningOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Lightning enablement and explicit columns or a bounded column count.
インポート
import type { LightningOptions } from "@johnmorrisdotca/houseki/nature";
定義
interface LightningOptions {
readonly enabled?: boolean;
readonly columns?: readonly number[];
readonly columnCount?: 1 | 2 | 3;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
enabled (省略可) | boolean | undefined | |
columns (省略可) | readonly number[] | undefined | |
columnCount (省略可) | 2 | 3 | 1 | undefined |
例
import type { LightningOptions } from "@johnmorrisdotca/houseki/nature";
const value: LightningOptions = {columns:[0]};
console.log(value == null ? value : typeof value === "object" ? Object.keys(value).slice(0,6) : value);[ 'columns' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。