@input/pen-types 0.1.6 → 0.1.8
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.
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1057,15 +1057,15 @@ interface BlockSchema<Type extends string = string, Props extends Record<string,
|
|
|
1057
1057
|
content: Content;
|
|
1058
1058
|
layout?: LayoutSchema;
|
|
1059
1059
|
serialize: {
|
|
1060
|
-
toMarkdown?(block: Block<Type, InferProps<Props>>): string;
|
|
1061
|
-
fromMarkdown?(node: MarkdownNode): BlockImportMatch<Type, InferProps<Props>> | null;
|
|
1062
|
-
toHTML?(block: Block<Type, InferProps<Props>>): string;
|
|
1063
|
-
fromHTML?(element: HTMLImportElement): BlockImportMatch<Type, InferProps<Props>> | null;
|
|
1064
|
-
toXML?(block: Block<Type, InferProps<Props>>): string;
|
|
1065
|
-
fromXML?(element: XMLElement): Block<Type, InferProps<Props>> | null;
|
|
1060
|
+
toMarkdown?(this: void, block: Block<Type, InferProps<Props>>): string;
|
|
1061
|
+
fromMarkdown?(this: void, node: MarkdownNode): BlockImportMatch<Type, InferProps<Props>> | null;
|
|
1062
|
+
toHTML?(this: void, block: Block<Type, InferProps<Props>>): string;
|
|
1063
|
+
fromHTML?(this: void, element: HTMLImportElement): BlockImportMatch<Type, InferProps<Props>> | null;
|
|
1064
|
+
toXML?(this: void, block: Block<Type, InferProps<Props>>): string;
|
|
1065
|
+
fromXML?(this: void, element: XMLElement): Block<Type, InferProps<Props>> | null;
|
|
1066
1066
|
};
|
|
1067
|
-
normalize?(block: Block<Type, InferProps<Props>>): Block<Type, InferProps<Props>>;
|
|
1068
|
-
validateProps?(raw: Record<string, unknown>): InferProps<Props>;
|
|
1067
|
+
normalize?(this: void, block: Block<Type, InferProps<Props>>): Block<Type, InferProps<Props>>;
|
|
1068
|
+
validateProps?(this: void, raw: Record<string, unknown>): InferProps<Props>;
|
|
1069
1069
|
fieldEditor?: FieldEditorType;
|
|
1070
1070
|
keyBindings?: readonly KeyBinding[];
|
|
1071
1071
|
placeholder?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1057,15 +1057,15 @@ interface BlockSchema<Type extends string = string, Props extends Record<string,
|
|
|
1057
1057
|
content: Content;
|
|
1058
1058
|
layout?: LayoutSchema;
|
|
1059
1059
|
serialize: {
|
|
1060
|
-
toMarkdown?(block: Block<Type, InferProps<Props>>): string;
|
|
1061
|
-
fromMarkdown?(node: MarkdownNode): BlockImportMatch<Type, InferProps<Props>> | null;
|
|
1062
|
-
toHTML?(block: Block<Type, InferProps<Props>>): string;
|
|
1063
|
-
fromHTML?(element: HTMLImportElement): BlockImportMatch<Type, InferProps<Props>> | null;
|
|
1064
|
-
toXML?(block: Block<Type, InferProps<Props>>): string;
|
|
1065
|
-
fromXML?(element: XMLElement): Block<Type, InferProps<Props>> | null;
|
|
1060
|
+
toMarkdown?(this: void, block: Block<Type, InferProps<Props>>): string;
|
|
1061
|
+
fromMarkdown?(this: void, node: MarkdownNode): BlockImportMatch<Type, InferProps<Props>> | null;
|
|
1062
|
+
toHTML?(this: void, block: Block<Type, InferProps<Props>>): string;
|
|
1063
|
+
fromHTML?(this: void, element: HTMLImportElement): BlockImportMatch<Type, InferProps<Props>> | null;
|
|
1064
|
+
toXML?(this: void, block: Block<Type, InferProps<Props>>): string;
|
|
1065
|
+
fromXML?(this: void, element: XMLElement): Block<Type, InferProps<Props>> | null;
|
|
1066
1066
|
};
|
|
1067
|
-
normalize?(block: Block<Type, InferProps<Props>>): Block<Type, InferProps<Props>>;
|
|
1068
|
-
validateProps?(raw: Record<string, unknown>): InferProps<Props>;
|
|
1067
|
+
normalize?(this: void, block: Block<Type, InferProps<Props>>): Block<Type, InferProps<Props>>;
|
|
1068
|
+
validateProps?(this: void, raw: Record<string, unknown>): InferProps<Props>;
|
|
1069
1069
|
fieldEditor?: FieldEditorType;
|
|
1070
1070
|
keyBindings?: readonly KeyBinding[];
|
|
1071
1071
|
placeholder?: string;
|