@arkitektbedriftene/fe-lib 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type CreateEditorArgs, type SerializedEditorState } from "lexical";
|
|
2
2
|
export declare const isJSON: (str: string) => boolean;
|
|
3
|
-
export declare const stateToHTML: (state: SerializedEditorState | string | null, nodes: CreateEditorArgs["nodes"], options?: {
|
|
3
|
+
export declare const stateToHTML: (state: SerializedEditorState | string | null | undefined, nodes: CreateEditorArgs["nodes"], options?: {
|
|
4
4
|
maxLines?: number | null;
|
|
5
5
|
onlyMainContent?: boolean;
|
|
6
6
|
}) => {
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export const isJSON = (str: string) => {
|
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export const stateToHTML = (
|
|
11
|
-
state: SerializedEditorState | string | null,
|
|
11
|
+
state: SerializedEditorState | string | null | undefined,
|
|
12
12
|
nodes: CreateEditorArgs["nodes"],
|
|
13
13
|
options?: {
|
|
14
14
|
maxLines?: number | null;
|